[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
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux open.c,1.50,1.51
- Next message: [Mplayer-cvslog] CVS: main/Gui/mplayer/gtk about.c,1.9,1.10 eq.c,1.6,1.7 fs.c,1.21,1.22 mb.c,1.10,1.11 opts.c,1.6,1.7 pl.c,1.5,1.6 sb.c,1.11,1.12 url.c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux open.c,1.50,1.51
- Next message: [Mplayer-cvslog] CVS: main/Gui/mplayer/gtk about.c,1.9,1.10 eq.c,1.6,1.7 fs.c,1.21,1.22 mb.c,1.10,1.11 opts.c,1.6,1.7 pl.c,1.5,1.6 sb.c,1.11,1.12 url.c,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list