[Mplayer-cvslog] CVS: main/Gui/mplayer widgets.c,1.34,1.35 widgets.h,1.16,1.17

Zoltan Ponekker pontscho at mplayerhq.hu
Wed Jul 31 01:09:26 CEST 2002


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mail:/var/tmp.root/cvs-serv7200/mplayer

Modified Files:
	widgets.c widgets.h 
Log Message:
gtk dialog bug fix

Index: widgets.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/widgets.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- widgets.c	25 Jul 2002 20:26:34 -0000	1.34
+++ widgets.c	30 Jul 2002 23:09:23 -0000	1.35
@@ -184,7 +184,7 @@
          } 
 	 else 
 	  {
-	   gtk_widget_destroy( SkinBrowser ); gtkVisible--;
+	   gtk_widget_destroy( SkinBrowser ); gtkDecVisible();
 	   gtkMessageBox( GTK_MB_ERROR,"Skin dirs not found ... Please install skins." );
 	  }
         break;
@@ -218,10 +218,10 @@
    case evShowPopUpMenu:
         gtkPopupMenu=evNone;
         gtkPopupMenuParam=0;
-        if ( PopUpMenu ) { gtk_widget_hide_on_delete( PopUpMenu ); gtkVisible--; }
+        if ( PopUpMenu ) { gtk_widget_hide_on_delete( PopUpMenu ); gtkDecVisible(); }
         PopUpMenu=create_PopUpMenu();
         gtk_menu_popup( GTK_MENU( PopUpMenu ),NULL,NULL,NULL,NULL,0,0 );
-	gtkVisible++;
+	gtkIncVisible();
         break;
    case evHidePopUpMenu:
         if ( PopUpMenu ) { gtk_widget_hide_on_delete( PopUpMenu ); /*gtkVisible--;*/ PopUpMenu=NULL; }
@@ -233,4 +233,6 @@
   }
 }
 
+void gtkIncVisible( void ) { gtkVisible++; }
+void gtkDecVisible( void ) { if ( gtkVisible > 0 ) gtkVisible--; }
 

Index: widgets.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/widgets.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- widgets.h	19 Jul 2002 20:51:45 -0000	1.16
+++ widgets.h	30 Jul 2002 23:09:23 -0000	1.17
@@ -61,4 +61,7 @@
 extern void gtkSetLayer( GtkWidget * wdg );
 extern void gtkActive( GtkWidget * wdg );
 
+extern void gtkIncVisible( void );
+extern void gtkDecVisible( void );
+
 #endif




More information about the MPlayer-cvslog mailing list