changeset 36009:e7bc0058139a

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.
author ib
date Sat, 30 Mar 2013 14:33:35 +0000
parents d154d0035cb0
children 5c720c434d56
files gui/dialog/tools.c gui/dialog/tools.h
diffstat 2 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/tools.c	Sat Mar 30 14:32:07 2013 +0000
+++ b/gui/dialog/tools.c	Sat Mar 30 14:33:35 2013 +0000
@@ -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;
--- a/gui/dialog/tools.h	Sat Mar 30 14:32:07 2013 +0000
+++ b/gui/dialog/tools.h	Sat Mar 30 14:33:35 2013 +0000
@@ -36,6 +36,5 @@
 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 */