Skip to content

Commit

Permalink
index methods for GtkPopover
Browse files Browse the repository at this point in the history
  • Loading branch information
jwahlstrand committed Jul 3, 2023
1 parent 8c9a055 commit 39dde46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/buttons.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ function GtkPopoverMenu(model::GMenu, nested = false)
end
end

popup(m::GtkPopover) = G_.popup(m)

GtkPopoverMenuBar(model::GMenu) = G_.PopoverMenuBar_new_from_model(model)

menu_model(b::Union{GtkMenuButton,GtkPopoverMenu, GtkPopoverMenuBar}, model) = G_.set_menu_model(b, GMenuModel(model))
Expand Down
7 changes: 7 additions & 0 deletions src/layout.jl
Original file line number Diff line number Diff line change
Expand Up @@ -267,3 +267,10 @@ getindex(s::GtkStack, name::AbstractString) = G_.get_child_by_name(s,name)
setindex!(s::GtkStack, x::GtkWidget, name::AbstractString) = G_.add_named(s,x,name)

stack(w::GtkStackSwitcher, s::GtkStack) = G_.set_stack(w,s)

## GtkPopover

getindex(w::GtkPopover) = G_.get_child(w)
setindex!(w::GtkPopover, c::GtkWidget) = G_.set_child(w,c)
popup(m::GtkPopover) = G_.popup(m)

0 comments on commit 39dde46

Please sign in to comment.