Mercurial > mplayer.hg
comparison Gui/mplayer/gtk/mb.c @ 6898:138a7ff52a26
- fix fuckin' locale (?:)
- fix msg box layer handling
author | pontscho |
---|---|
date | Sun, 04 Aug 2002 17:24:00 +0000 |
parents | ded48a755830 |
children | c2d4100c964e |
comparison
equal
deleted
inserted
replaced
6897:cd630017eb83 | 6898:138a7ff52a26 |
---|---|
14 | 14 |
15 int gtkVMessageBox = 0; | 15 int gtkVMessageBox = 0; |
16 | 16 |
17 void ShowMessageBox( char * msg ) | 17 void ShowMessageBox( char * msg ) |
18 { | 18 { |
19 if ( gtkVMessageBox ) gtkActive( MessageBox ); | 19 if ( gtkVMessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); } |
20 else MessageBox=create_MessageBox( 0 ); | 20 MessageBox=create_MessageBox( 0 ); |
21 gtkSetLayer( MessageBox ); | |
22 if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); | 21 if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); |
23 gtkIncVisible(); | 22 gtkIncVisible(); |
24 } | 23 } |
25 | 24 |
26 static void on_Ok_released( GtkButton * button,gpointer user_data ) | 25 static void on_Ok_released( GtkButton * button,gpointer user_data ) |