From dad1b107f5f52ac86ff251542bcd3adf2a2604a3 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 18 Sep 2001 03:40:03 +0000 Subject: [PATCH] add hackaround for the warning about gtk-menu-bar-accel 2001-09-17 Havoc Pennington * src/ui.c (meta_ui_init): add hackaround for the warning about gtk-menu-bar-accel --- ChangeLog | 5 +++++ src/ui.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4172a8746..9504dd4be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-09-17 Havoc Pennington + + * src/ui.c (meta_ui_init): add hackaround for the warning about + gtk-menu-bar-accel + 2001-09-17 Havoc Pennington * src/ui.c (meta_ui_get_default_mini_icon): diff --git a/src/ui.c b/src/ui.c index 0376e8f56..362988c98 100644 --- a/src/ui.c +++ b/src/ui.c @@ -39,6 +39,15 @@ meta_ui_init (int *argc, char ***argv) { if (!gtk_init_check (argc, argv)) meta_fatal ("Unable to open X display %s\n", XDisplayName (NULL)); + + { + /* FIXME this is a hackaround for a GTK bug with using menus without + * menubars. we have to use the get_type value since it's G_GNUC_CONST + */ + volatile GType t; + t = gtk_menu_bar_get_type (); + t += 5; + } } Display*