Mercurial > mplayer.hg
diff gui/dialog/playlist.c @ 36008:d154d0035cb0
Don't use WidgetDestroy().
(It's not the best idea to call gtk_widget_destroy() there while the
object is currently being destroyed.)
In order to set the widget pointer to NULL, use gtk_widget_destroyed().
Simply destroy the widget to automatically get the pointer set to NULL
then.
author | ib |
---|---|
date | Sat, 30 Mar 2013 14:32:07 +0000 |
parents | 9bdcd4ec73ae |
children | 5c720c434d56 |
line wrap: on
line diff
--- a/gui/dialog/playlist.c Sat Mar 30 14:13:23 2013 +0000 +++ b/gui/dialog/playlist.c Sat Mar 30 14:32:07 2013 +0000 @@ -171,7 +171,6 @@ free( old_path ); old_path=strdup( current_path ); gtk_widget_destroy( Playlist ); - Playlist=NULL; break; case 2: // remove { @@ -541,7 +540,7 @@ gtk_widget_add_accelerator( Cancel,"clicked",accel_group,GDK_Escape,0,GTK_ACCEL_VISIBLE ); - gtk_signal_connect( GTK_OBJECT( Playlist ),"destroy",GTK_SIGNAL_FUNC( WidgetDestroy ),&Playlist ); + gtk_signal_connect( GTK_OBJECT( Playlist ),"destroy",GTK_SIGNAL_FUNC( gtk_widget_destroyed ),&Playlist ); gtk_signal_connect( GTK_OBJECT( CLFiles ),"select_row",GTK_SIGNAL_FUNC( plRowSelect ),(void *)0 ); gtk_signal_connect( GTK_OBJECT( CLFiles ),"unselect_row",GTK_SIGNAL_FUNC( plUnRowSelect ),(void *)0 );