For a pop-up menu made in Gtk, I would like to have the first menu item as a header. Preferably its background should be white. Since---according to the documentation---one cannot change a gtk.Label
's background colour, but rather must change its container's background, it seemed to me the gtk.MenuItem
itself should be modified.
However, I have tried the following in vain:
menu_item.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse('#FFFFFF'))
This would work for a container as gtk.EventBox
, but for gtk.MenuItem
it does not. What's not working here above and what can I do to have this gtk.MenuItem
background white?
PS: i'd rather not use any .rc file for this.