summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/gtk/mb.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/mplayer/gtk/mb.c')
-rw-r--r--Gui/mplayer/gtk/mb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Gui/mplayer/gtk/mb.c b/Gui/mplayer/gtk/mb.c
index cee01cb0b6..569efae6a4 100644
--- a/Gui/mplayer/gtk/mb.c
+++ b/Gui/mplayer/gtk/mb.c
@@ -16,9 +16,8 @@ int gtkVMessageBox = 0;
void ShowMessageBox( char * msg )
{
- if ( gtkVMessageBox ) gtkActive( MessageBox );
- else MessageBox=create_MessageBox( 0 );
- gtkSetLayer( MessageBox );
+ if ( gtkVMessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); }
+ MessageBox=create_MessageBox( 0 );
if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 );
gtkIncVisible();
}