diff options
author | 2005-08-17 18:41:15 +0000 | |
---|---|---|
committer | 2005-08-17 18:41:15 +0000 | |
commit | c375528575124f64b5515809a8041cd4d05f7f44 (patch) | |
tree | 2bb9dc04a077d3dfa68c0c2888987610a9557424 /Gui/mplayer/widgets.c | |
parent | 912582e464d4afb5abcffd64a46f05735a66e3f8 (diff) |
Support for GTK 2.x.
Patch by Onur Kucuk (onur . delipenguen net).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16247 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/widgets.c')
-rw-r--r-- | Gui/mplayer/widgets.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Gui/mplayer/widgets.c b/Gui/mplayer/widgets.c index 907e7c990c..281db06726 100644 --- a/Gui/mplayer/widgets.c +++ b/Gui/mplayer/widgets.c @@ -217,7 +217,15 @@ void gtkShow( int type,char * param ) gtk_widget_destroy( PopUpMenu ); } PopUpMenu=create_PopUpMenu(); +#ifdef HAVE_GTK2_GUI + // Ugly hack, but we don't want to loose events + while(!GTK_WIDGET_VISIBLE(PopUpMenu)) { + gtk_menu_popup(GTK_MENU(PopUpMenu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time()); + gtk_main_iteration(); + } +#else gtk_menu_popup( GTK_MENU( PopUpMenu ),NULL,NULL,NULL,NULL,0,0 ); +#endif //HAVE_GTK2_GUI break; case evHidePopUpMenu: if ( PopUpMenu ) |