mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 07:26:51 -05:00
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:
parent
582a80f518
commit
dad1b107f5
@ -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):
|
||||
|
9
src/ui.c
9
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*
|
||||
|
Loading…
Reference in New Issue
Block a user