maemo.org Bugzilla – Bug 4654
Using GtkImageManuItems together with hildon_gtk_menu_new() does not create finger friendly menu items
Last modified: 2009-07-14 13:45:47 UTC
You need to log in before you can comment on or make changes to this bug.
STEPS TO REPRODUCE THE PROBLEM: Use the following code to create a popup menu. GtkWidget *menu = hildon_gtk_menu_new(); GtkWidget *item1 = gtk_image_menu_item_new_from_stock(GTK_STOCK_COPY, NULL); GtkWidget *item2 = gtk_image_menu_item_new_from_stock(GTK_STOCK_PASTE, NULL); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item1); gtk_menu_shell_append(GTK_MENU_SHELL(menu), item2); gtk_widget_show_all(menu); gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time()); EXPECTED OUTCOME: The menu items should have big size. Like when using GtkMenuItems instead of GtkImageMenuItems. ACTUAL OUTCOME: The menu items are small. See screenshot. REPRODUCIBILITY: always
Created an attachment (id=1219) [details] Shows a GtkImageMenuItem beeing rendered too small
So it has a fingerfriendly size when not using icons? Asking because I don't see any difference in size to the non-icon menu screenshots in http://maemo.org/development/sdks/maemo_5_examples/ .
Created an attachment (id=1221) [details] Shows menu items without images beeing displayed correctly
> So it has a fingerfriendly size when not using icons? Exactly. I created another screenshot which is showing this. > Asking because I don't see any difference in size to the non-icon menu > screenshots in http://maemo.org/development/sdks/maemo_5_examples/ . Those screenshots are old and IMO quite useless.
I'll take a look
This bug has already been fixed internally. Cornelius, if you want to see how it looks, edit the gtkrc file under /usr/share/themes/, look for this line: widget "*.hildon-context-sensitive-menu.GtkMenuItem" style "fremantle-menuitem" and add this one after that: widget "*.hildon-context-sensitive-menu.GtkImageMenuItem" style "fremantle-menuitem"
> Cornelius, if you want to see how it looks, edit the gtkrc file under > /usr/share/themes/, look for this line: > > widget "*.hildon-context-sensitive-menu.GtkMenuItem" style "fremantle-menuitem" > > and add this one after that: > > widget "*.hildon-context-sensitive-menu.GtkImageMenuItem" style > "fremantle-menuitem" I'll try it. Thank you!
(setting TM to Fremantle)
Fix should be included in Fremantle SDK beta 2 hence updating Target Milestone. If you are the reporter of this bug: Feel free to verify the fix if possible.