From cb2e693d2246c450842810b1e49452a49489938a Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 14 Jul 2006 16:57:24 +0000 Subject: Mark several string parameters that are not modified in the function as const. patch by Stefan Huehner, stefan at huehner org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19086 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/mplayer/gtk/common.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Gui/mplayer/gtk/common.c') diff --git a/Gui/mplayer/gtk/common.c b/Gui/mplayer/gtk/common.c index 7162b75e4e..d3e0615a6c 100644 --- a/Gui/mplayer/gtk/common.c +++ b/Gui/mplayer/gtk/common.c @@ -23,7 +23,7 @@ GtkWidget * AddDialogFrame( GtkWidget * parent ) return frame; } -GtkWidget * AddFrame( char * title,int type,GtkWidget * parent,int add ) +GtkWidget * AddFrame( const char * title,int type,GtkWidget * parent,int add ) { GtkWidget * frame = NULL; frame=gtk_frame_new( title ); @@ -36,7 +36,7 @@ GtkWidget * AddFrame( char * title,int type,GtkWidget * parent,int add ) return frame; } -GtkWidget * AddLabel( char * title,GtkWidget * parent ) +GtkWidget * AddLabel( const char * title,GtkWidget * parent ) { GtkWidget * label; label=gtk_label_new( title ); @@ -76,7 +76,7 @@ GtkWidget * AddHBox( GtkWidget * parent,int type ) return hbox; } -GtkWidget * AddCheckButton( char * title, GtkWidget * parent ) +GtkWidget * AddCheckButton( const char * title, GtkWidget * parent ) { GtkWidget * CB; CB=gtk_check_button_new_with_label( title ); @@ -86,7 +86,7 @@ GtkWidget * AddCheckButton( char * title, GtkWidget * parent ) return CB; } -GtkWidget * AddRadioButton( char * title,GSList ** group,GtkWidget * parent ) +GtkWidget * AddRadioButton( const char * title,GSList ** group,GtkWidget * parent ) { GtkWidget * RB; RB=gtk_radio_button_new_with_label( *group,title ); @@ -97,7 +97,7 @@ GtkWidget * AddRadioButton( char * title,GSList ** group,GtkWidget * parent ) return RB; } -GtkWidget * AddButton( char * title,GtkWidget * parent ) +GtkWidget * AddButton( const char * title,GtkWidget * parent ) { GtkWidget * B; B=gtk_button_new_with_label( title ); -- cgit v1.2.3