[MPlayer-cvslog] CVS: main/Gui/mplayer widgets.c,1.44,1.45

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Aug 17 20:41:17 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var2/tmp/cvs-serv7929/Gui/mplayer

Modified Files:
	widgets.c 
Log Message:
Support for GTK 2.x.
Patch by Onur Kucuk (onur . delipenguen net).


Index: widgets.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/widgets.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- widgets.c	15 Dec 2004 01:22:24 -0000	1.44
+++ widgets.c	17 Aug 2005 18:41:15 -0000	1.45
@@ -217,7 +217,15 @@
 	  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 ) 




More information about the MPlayer-cvslog mailing list