[hafqa] [hafqa] [Bug 1130] New: Submenus fail to open on sardine-experimental
From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.orgDate: Wed Mar 7 19:16:44 EET 2007
- Previous message: [hafqa] [Bug 1121] GtkCellRendererToggle theming bug
- Next message: [hafqa] [Bug 952] maemo-launcher broken with gtk+ 2.10
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
https://maemo.org/bugzilla/show_bug.cgi?id=1130 Summary: Submenus fail to open on sardine-experimental Product: haf Version: sardine Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: window-manager AssignedTo: tapani.palli at nokia.com ReportedBy: nix at go-nix.ca QAContact: hafqa at maemo.org CC: tommi.komulainen at nokia.com #define USE_HILDON #ifdef USE_HILDON #include <hildon/hildon.h> #else #include <gtk/gtk.h> #endif int main (int argc, char **argv) { GtkWidget *menu = NULL, *menuitem = NULL ; GtkWidget *wnd = NULL ; gtk_init (&argc, &argv) ; g_set_application_name ("Submenu Test") ; #ifdef USE_HILDON hildon_program_add_window (hildon_program_get_instance (), HILDON_WINDOW (wnd = g_object_new (HILDON_TYPE_WINDOW, "visible", TRUE, NULL))) ; hildon_window_set_menu (HILDON_WINDOW (wnd), GTK_MENU (menu = g_object_new (GTK_TYPE_MENU, "visible", TRUE, NULL))) ; #else wnd = g_object_new (GTK_TYPE_WINDOW, "visible", TRUE, "resizable", FALSE, "child", menu = g_object_new (GTK_TYPE_MENU_BAR, "visible", TRUE, NULL), NULL) ; gtk_container_add (GTK_CONTAINER (menu), menuitem = g_object_new (GTK_TYPE_MENU_ITEM, "visible", TRUE, "child", g_object_new (GTK_TYPE_LABEL, "visible", TRUE, "label", "Menu", NULL), NULL)) ; gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu = g_object_new (GTK_TYPE_MENU, "visible", TRUE, NULL)) ; #endif g_signal_connect (G_OBJECT (wnd), "delete-event", (GCallback)gtk_main_quit, NULL) ; gtk_container_add (GTK_CONTAINER (menu), menuitem = g_object_new (GTK_TYPE_MENU_ITEM, "visible", TRUE, "child", g_object_new (GTK_TYPE_LABEL, "visible", TRUE, "label", "Main Item", NULL), NULL)) ; gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu = g_object_new (GTK_TYPE_MENU, "visible", TRUE, NULL)) ; gtk_container_add (GTK_CONTAINER (menu), menuitem = g_object_new (GTK_TYPE_MENU_ITEM, "visible", TRUE, "child", g_object_new (GTK_TYPE_LABEL, "visible", TRUE, "label", "Subitem", NULL), NULL)) ; gtk_main () ; return 0 ; } /* In both cases, you can open the menu, but you cannot open the submenu. In the non-hildon case, something /really/ funky happens when you open the main menu even. You get one of those menu scrolling widgets but no menu item. Works fine on desktop. */ -- Configure bugmail: https://maemo.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
- Previous message: [hafqa] [Bug 1121] GtkCellRendererToggle theming bug
- Next message: [hafqa] [Bug 952] maemo-launcher broken with gtk+ 2.10
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]