Mercurial > mplayer.hg
comparison Gui/mplayer/gtk/mb.c @ 6755:a31b9f15cbff
- fix audio equalizer
- rewrite video equalizer handling (i teszted with mga g400 [x]mga,xv,xvidix and radeon xv,xvidix )
- fix some small gtk bug
- i dunno, i don't remember ... :)
author | pontscho |
---|---|
date | Fri, 19 Jul 2002 20:51:48 +0000 |
parents | 8f49c75a2824 |
children | 77980ab4e296 |
comparison
equal
deleted
inserted
replaced
6754:c925dd9372f1 | 6755:a31b9f15cbff |
---|---|
17 void ShowMessageBox( char * msg ) | 17 void ShowMessageBox( char * msg ) |
18 { | 18 { |
19 if ( gtkVMessageBox ) gtkActive( MessageBox ); | 19 if ( gtkVMessageBox ) gtkActive( MessageBox ); |
20 else MessageBox=create_MessageBox( 0 ); | 20 else MessageBox=create_MessageBox( 0 ); |
21 if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); | 21 if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); |
22 gtkVisible++; | |
22 } | 23 } |
23 | 24 |
24 static void on_Ok_released( GtkButton * button,gpointer user_data ) | 25 static void on_Ok_released( GtkButton * button,gpointer user_data ) |
25 { gtkVMessageBox=0; gtk_widget_destroy( MessageBox ); } | 26 { gtkVMessageBox=0; gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); gtkVisible--; } |
26 | 27 |
27 static void on_MessageBox_show( GtkButton * button,gpointer user_data ) | 28 static void on_MessageBox_show( GtkButton * button,gpointer user_data ) |
28 { gtkVMessageBox=(int)user_data; } | 29 { gtkVMessageBox=(int)user_data; } |
29 | 30 |
30 GtkWidget * create_MessageBox( int type ) | 31 GtkWidget * create_MessageBox( int type ) |