Mercurial > mplayer.hg
comparison Gui/mplayer/gtk/mb.c @ 19081:273bdef43012
Mark several string parameters that are not modified in the function as const.
patch by Stefan Huehner, stefan at huehner org
author | diego |
---|---|
date | Fri, 14 Jul 2006 16:57:24 +0000 |
parents | 0e1471d9da74 |
children | 8e6182a75006 |
comparison
equal
deleted
inserted
replaced
19080:6ff62e005cba | 19081:273bdef43012 |
---|---|
11 #include "common.h" | 11 #include "common.h" |
12 | 12 |
13 GtkWidget * gtkMessageBoxText; | 13 GtkWidget * gtkMessageBoxText; |
14 GtkWidget * MessageBox = NULL; | 14 GtkWidget * MessageBox = NULL; |
15 | 15 |
16 void ShowMessageBox( char * msg ) | 16 void ShowMessageBox( const char * msg ) |
17 { | 17 { |
18 if ( MessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); } | 18 if ( MessageBox ) { gtk_widget_hide( MessageBox ); gtk_widget_destroy( MessageBox ); } |
19 MessageBox=create_MessageBox( 0 ); | 19 MessageBox=create_MessageBox( 0 ); |
20 if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); | 20 if ( strlen( msg ) < 20 ) gtk_widget_set_usize( MessageBox,196,-1 ); |
21 } | 21 } |