Re: [gtk-list] Icon-titled Menus with GTK+?




Bill Hayden <billh@mmrd.com> writes:
> Is it trivial to make an icon-titled menu in GTK+?  By icon-titled menu, I 
> am referring to something akin to the Apple menu in the MacOS.  References 
> to sample code would be much appreciated.
> 

I can't think of any sample code, but it should be trivial; look at
some code (such as testgtk.c) that calls
gtk_menu_item_new_with_label(), and instead of calling that call:
 mi = gtk_menu_item_new ();
 pixmap = gtk_pixmap_new (... whatever image ...);
 gtk_container_add (GTK_CONTAINER(mi), pixmap);

Havoc



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