Author: ib Date: Sat Mar 30 15:13:23 2013 New Revision: 36101 Log: There is no need to hide the widget prior to destruction. Modified: trunk/gui/dialog/msgbox.c Modified: trunk/gui/dialog/msgbox.c ============================================================================== --- trunk/gui/dialog/msgbox.c Sat Mar 30 09:53:02 2013 (r36100) +++ trunk/gui/dialog/msgbox.c Sat Mar 30 15:13:23 2013 (r36101) @@ -33,7 +33,6 @@ GtkWidget * MessageBox = NULL; static void on_Ok_released( GtkButton * button,gpointer user_data ) { - gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); MessageBox=NULL; } @@ -109,7 +108,7 @@ static GtkWidget * CreateMessageBox( voi void ShowMessageBox( const char * msg ) { - if ( MessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); } + if ( MessageBox ) gtk_widget_destroy( MessageBox ); MessageBox=CreateMessageBox(); if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); }
participants (1)
-
ib