Mercurial > mplayer.hg
comparison Gui/mplayer/psignal.c @ 1925:633a7f0d72a4
add gui error handling jol.
author | pontscho |
---|---|
date | Thu, 20 Sep 2001 10:27:24 +0000 |
parents | 83291fafe66c |
children | 3248aabc6d1d |
comparison
equal
deleted
inserted
replaced
1924:6185fef2703a | 1925:633a7f0d72a4 |
---|---|
93 gtkVisibleFileSelect=1; | 93 gtkVisibleFileSelect=1; |
94 gtkShow( evFirstLoad ); | 94 gtkShow( evFirstLoad ); |
95 break; | 95 break; |
96 case evMessageBox: | 96 case evMessageBox: |
97 gtk_label_set_text( gtkMessageBoxText,(char *)gtkShMem->mb.str ); | 97 gtk_label_set_text( gtkMessageBoxText,(char *)gtkShMem->mb.str ); |
98 if ( gtkVisibleMessageBox ) gtk_widget_hide( MessageBox ); | 98 if( gtkVisibleMessageBox ) gtk_widget_hide( MessageBox ); |
99 switch( gtkShMem->mb.type) | |
100 { | |
101 case GTK_MB_FATAL: | |
102 gtk_window_set_title (GTK_WINDOW (MessageBox), "fatal error ..."); | |
103 gtk_widget_hide( WarningPixmap ); | |
104 gtk_widget_show( ErrorPixmap ); | |
105 break; | |
106 case GTK_MB_ERROR: | |
107 gtk_window_set_title (GTK_WINDOW (MessageBox), "error ..."); | |
108 gtk_widget_hide( WarningPixmap ); | |
109 gtk_widget_show( ErrorPixmap ); | |
110 break; | |
111 case GTK_MB_WARNING: | |
112 gtk_window_set_title (GTK_WINDOW (MessageBox), "warning ..."); | |
113 gtk_widget_show( WarningPixmap ); | |
114 gtk_widget_hide( ErrorPixmap ); | |
115 break; | |
116 } | |
99 gtk_widget_show( MessageBox ); | 117 gtk_widget_show( MessageBox ); |
100 gtkVisibleMessageBox=1; | 118 gtkVisibleMessageBox=1; |
101 break; | 119 break; |
102 case evAbout: | 120 case evAbout: |
103 if ( gtkVisibleAboutBox ) gtk_widget_hide( AboutBox ); | 121 if ( gtkVisibleAboutBox ) gtk_widget_hide( AboutBox ); |