diff options
author | Oleg Shparber <oleg.shparber@wisetroll.com> | 2011-03-21 09:00:36 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-03-21 09:00:36 -0500 |
commit | 746a792ef912c5160fed15bf817df5124f6610b0 (patch) | |
tree | c7237310f33cac41ff93716ccb4e36da9e5f4ead /libdbusmenu-gtk | |
parent | 0c14221e10d1adb346b4c22d7ff503be52a62899 (diff) | |
download | libdbusmenu-746a792ef912c5160fed15bf817df5124f6610b0.tar.gz libdbusmenu-746a792ef912c5160fed15bf817df5124f6610b0.tar.bz2 libdbusmenu-746a792ef912c5160fed15bf817df5124f6610b0.zip |
Entering and exiting the GDK threads when calling up to GTK
Diffstat (limited to 'libdbusmenu-gtk')
-rw-r--r-- | libdbusmenu-gtk/parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libdbusmenu-gtk/parser.c b/libdbusmenu-gtk/parser.c index 9d93a1e..a7f90a2 100644 --- a/libdbusmenu-gtk/parser.c +++ b/libdbusmenu-gtk/parser.c @@ -845,7 +845,9 @@ item_activated (DbusmenuMenuitem *item, guint timestamp, gpointer user_data) if (GTK_IS_MENU_ITEM (child)) { + gdk_threads_enter (); gtk_menu_item_activate (GTK_MENU_ITEM (child)); + gdk_threads_leave (); } } } |