All, I'm writing another project and I'm trying to achieve a similar style as RB's source toolbar buttons (Edit, Browse etc) - namely, the popup is styled in the same colour as the button itself.
A standard GtkMenuButton displays the popup in the theme colour - not the button colour... in ubuntu this is the dark ambiance theme. So to my question - how does RB achieve this - is it some custom GtkMenuButton? Any hints where the theming for the popup in the RB source code would be gratefully received. N.B. Below is a simple python code sample showing a GtkMenuButton in action. from gi.repository import Gtk, Gdk class MenuExampleWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Menu Example") self.set_default_size(200, 200) box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) menu = Gtk.Menu() mitem1 = Gtk.MenuItem(label = "Item 1") mitem2 = Gtk.MenuItem(label = "Item 2") menub = Gtk.MenuButton(label='menu') menub.set_popup(menu) menub.set_align_widget(None) menub.show_all() menu.append(mitem1) menu.append(mitem2) menu.attach_to_widget(menub, None) menu.show_all() box.pack_start(menub, False, False, 1) self.add(box) window = MenuExampleWindow() window.connect("delete-event", Gtk.main_quit) window.show_all() Gtk.main()
_______________________________________________ rhythmbox-devel mailing list rhythmbox-devel@gnome.org https://mail.gnome.org/mailman/listinfo/rhythmbox-devel