[MPlayer-cvslog] r36103 - in trunk/gui/dialog: tools.c tools.h
ib
subversion at mplayerhq.hu
Sat Mar 30 15:33:35 CET 2013
Author: ib
Date: Sat Mar 30 15:33:35 2013
New Revision: 36103
Log:
Remove WidgetDestroy().
It's not the best idea to call gtk_widget_destroy() while the object
is currently being destroyed.
All former usages of WidgetDestroy() have been replaced, so it's
obsolete now.
Modified:
trunk/gui/dialog/tools.c
trunk/gui/dialog/tools.h
Modified: trunk/gui/dialog/tools.c
==============================================================================
--- trunk/gui/dialog/tools.c Sat Mar 30 15:32:07 2013 (r36102)
+++ trunk/gui/dialog/tools.c Sat Mar 30 15:33:35 2013 (r36103)
@@ -21,14 +21,6 @@
#include "tools.h"
-void WidgetDestroy( GtkWidget * widget,GtkWidget ** widget_pointer )
-{
- if ( !widget_pointer ) return;
- gtk_widget_hide( *widget_pointer );
- gtk_widget_destroy( *widget_pointer );
- *widget_pointer=NULL;
-}
-
GtkWidget * AddDialogFrame( GtkWidget * parent )
{
GtkWidget * frame;
Modified: trunk/gui/dialog/tools.h
==============================================================================
--- trunk/gui/dialog/tools.h Sat Mar 30 15:32:07 2013 (r36102)
+++ trunk/gui/dialog/tools.h Sat Mar 30 15:33:35 2013 (r36103)
@@ -36,6 +36,5 @@ GtkWidget * AddHButtonBox( GtkWidget * p
GtkWidget * AddHScaler( GtkAdjustment * adj, GtkWidget * parent, int digit );
GtkWidget * AddVScaler( GtkAdjustment * adj, GtkWidget * parent, int digit );
GtkWidget * AddComboBox( GtkWidget * parent );
-void WidgetDestroy( GtkWidget * widget, GtkWidget ** widget_pointer );
#endif /* MPLAYER_GUI_TOOLS_H */
More information about the MPlayer-cvslog
mailing list