add hackaround for the warning about gtk-menu-bar-accel

2001-09-17  Havoc Pennington  <hp@pobox.com>

	* src/ui.c (meta_ui_init): add hackaround for the warning about
	gtk-menu-bar-accel
This commit is contained in:
Havoc Pennington 2001-09-18 03:40:03 +00:00 committed by Havoc Pennington
parent 582a80f518
commit dad1b107f5
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2001-09-17 Havoc Pennington <hp@pobox.com>
* src/ui.c (meta_ui_init): add hackaround for the warning about
gtk-menu-bar-accel
2001-09-17 Havoc Pennington <hp@pobox.com>
* src/ui.c (meta_ui_get_default_mini_icon):

View File

@ -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*