J
Joe Van Dyk
I have something like this
class MenuBar < Gtk::MenuBar
def initialize
super
# create menu buttons
show
end
end
class ApplicationWindow < Gtk::Window
def initialize
super
container =3D Gtk::VBox.new
container.pack_start MenuBar.new
container.show
end
end
So, when the menu bar gets clicked, a signal gets emitted in the Menu
Bar object. How can the Application Window object know that a menu
bar gets clicked? Do I need to create a new signal to notify the
Application Window?
Thanks,
Joe
class MenuBar < Gtk::MenuBar
def initialize
super
# create menu buttons
show
end
end
class ApplicationWindow < Gtk::Window
def initialize
super
container =3D Gtk::VBox.new
container.pack_start MenuBar.new
container.show
end
end
So, when the menu bar gets clicked, a signal gets emitted in the Menu
Bar object. How can the Application Window object know that a menu
bar gets clicked? Do I need to create a new signal to notify the
Application Window?
Thanks,
Joe