changeset 36007:90ff4280cc80

There is no need to hide the widget prior to destruction.
author ib
date Sat, 30 Mar 2013 14:13:23 +0000
parents efb9481610d2
children d154d0035cb0
files gui/dialog/msgbox.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/msgbox.c	Sat Mar 30 08:53:02 2013 +0000
+++ b/gui/dialog/msgbox.c	Sat Mar 30 14:13:23 2013 +0000
@@ -33,7 +33,6 @@
 
 static void on_Ok_released( GtkButton * button,gpointer user_data  )
 {
- gtk_widget_hide( MessageBox );
  gtk_widget_destroy( MessageBox );
  MessageBox=NULL;
 }
@@ -109,7 +108,7 @@
 
 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 );
 }