Re: Bitmap with the menu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you're talking about GTK3, MenuItem with images are deprecated!

but... if GTK2, you can use GtkImageMenuItem in conjunction to
GtkImage and then use

gtk_image_menu_item_set_image (gtk_image_item); [1] or use it with stock i.e.

gtk_image_menu_item_new_from_stock ("stock-id", accel_group); [2]


and also if GTK3, you should use GMenu (probably from a XML UI), see
this quotation[3] from Emmanuele Bassi:

"GAction replaces GtkAction; images on menus have been discouraged for
years, and the whole menu system has been replaced by GMenu XML
descriptions that can be exported on the session bus. "

[1]: https://developer.gnome.org/gtk2/stable/GtkImageMenuItem.html#gtk-image-menu-item-set-image
[2]: https://developer.gnome.org/gtk2/stable/GtkImageMenuItem.html#gtk-image-menu-item-new-from-stock
[3]: http://gtk.10911.n7.nabble.com/Stock-Items-Deprecation-td81617.html#a81775


-- 
Victor Aurélio Santos
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list





[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux