gtranslator r3801 - in trunk: . src src/dialogs



Author: psanxiao
Date: Thu Oct  2 15:42:35 2008
New Revision: 3801
URL: http://svn.gnome.org/viewvc/gtranslator?rev=3801&view=rev

Log:
2008-10-02  Pablo Sanxiao  <psanxiao gmail com>

	Fixed warnings.


Modified:
   trunk/ChangeLog
   trunk/src/actions-file.c
   trunk/src/actions-go.c
   trunk/src/actions-view.c
   trunk/src/dialogs/preferences-dialog.c
   trunk/src/dialogs/profile-dialog.c
   trunk/src/header.c
   trunk/src/header.h
   trunk/src/profile.c
   trunk/src/profile.h
   trunk/src/tab.c
   trunk/src/view.c

Modified: trunk/src/actions-file.c
==============================================================================
--- trunk/src/actions-file.c	(original)
+++ trunk/src/actions-file.c	Thu Oct  2 15:42:35 2008
@@ -63,7 +63,7 @@
 	GtranslatorTab *tab;
 	GList *current;
 	GtranslatorView *active_view;
-	gchar *project_id;
+	const gchar *project_id;
 
 	/*
 	 * If the filename can't be opened, pass the error back to the caller

Modified: trunk/src/actions-go.c
==============================================================================
--- trunk/src/actions-go.c	(original)
+++ trunk/src/actions-go.c	Thu Oct  2 15:42:35 2008
@@ -170,4 +170,4 @@
 			  GtranslatorWindow *window)
 {
 	gtranslator_show_jump_dialog (window);
-}
\ No newline at end of file
+}

Modified: trunk/src/actions-view.c
==============================================================================
--- trunk/src/actions-view.c	(original)
+++ trunk/src/actions-view.c	Thu Oct  2 15:42:35 2008
@@ -41,4 +41,4 @@
 	tm_ui = GTK_WIDGET (gtranslator_tab_get_translation_memory_ui (tab));
 	
 	gtranslator_tab_show_lateral_panel_widget (tab, tm_ui);
-}
\ No newline at end of file
+}

Modified: trunk/src/dialogs/preferences-dialog.c
==============================================================================
--- trunk/src/dialogs/preferences-dialog.c	(original)
+++ trunk/src/dialogs/preferences-dialog.c	Thu Oct  2 15:42:35 2008
@@ -456,7 +456,7 @@
   for (l = profiles_list; l; l = l->next) {
     
     GtranslatorProfile *profile;
-    gchar *profile_name;
+    const gchar *profile_name;
     
     profile = (GtranslatorProfile *)l->data;
 
@@ -844,7 +844,7 @@
 setup_tm_pages(GtranslatorPreferencesDialog *dlg)
 {
   GtranslatorProfile *profile;
-  gchar *language_code;
+  const gchar *language_code;
   const gchar *filename = NULL;
 
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (dlg->priv->show_tm_options_checkbutton),
@@ -959,8 +959,9 @@
   GtkTreeIter iter;
   GtkTreeModel *model;
   GtkTreeSelection *selection;
-  gchar *profile_row, *old_profile_name;
-  GtranslatorProfile *edited_profile;
+  gchar *profile_row;
+  const gchar *old_profile_name;
+  GtranslatorProfile *edited_profile = NULL;
   GtranslatorProfile *active_profile;
   GList *profiles_list = NULL, *l = NULL;
   

Modified: trunk/src/dialogs/profile-dialog.c
==============================================================================
--- trunk/src/dialogs/profile-dialog.c	(original)
+++ trunk/src/dialogs/profile-dialog.c	Thu Oct  2 15:42:35 2008
@@ -259,7 +259,7 @@
       gtranslator_application_set_active_profile (GTR_APP, profile);
       gtranslator_application_set_profiles (GTR_APP, initial_list); 
     } else {
-      g_list_append (profiles_list, profile);
+      profiles_list = g_list_append (profiles_list, profile);
     }   
   }
   

Modified: trunk/src/header.c
==============================================================================
--- trunk/src/header.c	(original)
+++ trunk/src/header.c	Thu Oct  2 15:42:35 2008
@@ -179,156 +179,156 @@
 	return header;
 }
 
-gchar *gtranslator_header_get_comment (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_comment (GtranslatorHeader *header)
 {
 	return header->priv->comment;
 }
 
-void gtranslator_header_set_comment (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_comment (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->comment)
 		g_free(header->priv->comment);
 	header->priv->comment = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_prj_id_version (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_prj_id_version (GtranslatorHeader *header)
 {
 	return header->priv->prj_id_version;
 }
 
-void gtranslator_header_set_prj_id_version (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_prj_id_version (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->prj_id_version)
 		g_free(header->priv->prj_id_version);
 	header->priv->prj_id_version = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_rmbt (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_rmbt (GtranslatorHeader *header)
 {
 	return header->priv->rmbt;
 }
 
-void gtranslator_header_set_rmbt (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_rmbt (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->rmbt)
 		g_free(header->priv->rmbt);
 	header->priv->rmbt = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_pot_date (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_pot_date (GtranslatorHeader *header)
 {
 	return header->priv->pot_date;
 }
 
-void gtranslator_header_set_pot_date (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_pot_date (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->pot_date)
 		g_free(header->priv->pot_date);
 	header->priv->pot_date = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_po_date (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_po_date (GtranslatorHeader *header)
 {
 	return header->priv->po_date;
 }
 
-void gtranslator_header_set_po_date (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_po_date (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->po_date)
 		g_free(header->priv->po_date);
 	header->priv->po_date = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_translator (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_translator (GtranslatorHeader *header)
 {
 	return header->priv->translator;
 }
 
-void gtranslator_header_set_translator (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_translator (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->translator)
 		g_free(header->priv->translator);
 	header->priv->translator = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_tr_email (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_tr_email (GtranslatorHeader *header)
 {
 	return header->priv->tr_email;
 }
 
-void gtranslator_header_set_tr_email (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_tr_email (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->tr_email)
 		g_free(header->priv->tr_email);
 	header->priv->tr_email = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_prev_translator (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_prev_translator (GtranslatorHeader *header)
 {
 	return header->priv->prev_translator;
 }
 
-void gtranslator_header_set_prev_translator (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_prev_translator (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->prev_translator)
 		g_free(header->priv->prev_translator);
 	header->priv->prev_translator = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_language (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_language (GtranslatorHeader *header)
 {
 	return header->priv->language;
 }
 
-void gtranslator_header_set_language (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_language (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->language)
 		g_free(header->priv->language);
 	header->priv->language = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_lg_email (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_lg_email (GtranslatorHeader *header)
 {
 	return header->priv->lg_email;
 }
 
-void gtranslator_header_set_lg_email (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_lg_email (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->lg_email)
 		g_free(header->priv->lg_email);
 	header->priv->lg_email = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_mime_version (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_mime_version (GtranslatorHeader *header)
 {
 	return header->priv->mime_version;
 }
 
-void gtranslator_header_set_mime_version (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_mime_version (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->mime_version)
 		g_free(header->priv->mime_version);
 	header->priv->mime_version = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_charset (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_charset (GtranslatorHeader *header)
 {
 	return header->priv->charset;
 }
 
-void gtranslator_header_set_charset (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_charset (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->charset)
 		g_free(header->priv->charset);
 	header->priv->charset = g_strdup(data);
 }
 
-gchar *gtranslator_header_get_encoding (GtranslatorHeader *header)
+const gchar *gtranslator_header_get_encoding (GtranslatorHeader *header)
 {
 	return header->priv->encoding;
 }
 
-void gtranslator_header_set_encoding (GtranslatorHeader *header, gchar *data)
+void gtranslator_header_set_encoding (GtranslatorHeader *header, const gchar *data)
 {
 	if(header->priv->encoding)
 		g_free(header->priv->encoding);
@@ -387,7 +387,7 @@
 gboolean
 gtranslator_header_get_header_changed (GtranslatorHeader *header)
 {
-  g_return_val_if_fail (GTR_IS_HEADER (header), NULL);
+  g_return_val_if_fail (GTR_IS_HEADER (header), FALSE);
 
   return header->priv->header_changed;
 }

Modified: trunk/src/header.h
==============================================================================
--- trunk/src/header.h	(original)
+++ trunk/src/header.h	Thu Oct  2 15:42:35 2008
@@ -47,9 +47,9 @@
 
 struct _GtranslatorHeader
 {
-	GObject parent_instance;
-	/*< private > */
-	GtranslatorHeaderPrivate *priv;
+  GObject parent_instance;
+  /*< private > */
+  GtranslatorHeaderPrivate *priv;
 };
 
 /*
@@ -59,7 +59,7 @@
 
 struct _GtranslatorHeaderClass
 {
-	GObjectClass parent_class;
+  GObjectClass parent_class;
 };
 
 /*
@@ -70,46 +70,46 @@
 GType		gtranslator_header_register_type	(GTypeModule * module);
 
 GtranslatorHeader
-		*gtranslator_header_new			(void);
+*gtranslator_header_new			(void);
 
-gchar		*gtranslator_header_get_comment		(GtranslatorHeader *header);
-void		 gtranslator_header_set_comment		(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_comment		(GtranslatorHeader *header);
+void		 gtranslator_header_set_comment		(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_prj_id_version	(GtranslatorHeader *header);
-void		 gtranslator_header_set_prj_id_version	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_prj_id_version	(GtranslatorHeader *header);
+void		 gtranslator_header_set_prj_id_version	(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_rmbt		(GtranslatorHeader *header);
-void		 gtranslator_header_set_rmbt		(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_rmbt		(GtranslatorHeader *header);
+void		 gtranslator_header_set_rmbt		(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_pot_date	(GtranslatorHeader *header);
-void		 gtranslator_header_set_pot_date	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_pot_date	(GtranslatorHeader *header);
+void		 gtranslator_header_set_pot_date	(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_po_date		(GtranslatorHeader *header);
-void		 gtranslator_header_set_po_date		(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_po_date		(GtranslatorHeader *header);
+void		 gtranslator_header_set_po_date		(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_translator	(GtranslatorHeader *header);
-void		 gtranslator_header_set_translator	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_translator	(GtranslatorHeader *header);
+void		 gtranslator_header_set_translator	(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_tr_email	(GtranslatorHeader *header);
-void		 gtranslator_header_set_tr_email	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_tr_email	(GtranslatorHeader *header);
+void		 gtranslator_header_set_tr_email	(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_prev_translator	(GtranslatorHeader *header);
-void		 gtranslator_header_set_prev_translator (GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_prev_translator	(GtranslatorHeader *header);
+void		 gtranslator_header_set_prev_translator (GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_language	(GtranslatorHeader *header);
-void		 gtranslator_header_set_language	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_language	(GtranslatorHeader *header);
+void		 gtranslator_header_set_language	(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_lg_email	(GtranslatorHeader *header);
-void		 gtranslator_header_set_lg_email	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_lg_email	(GtranslatorHeader *header);
+void		 gtranslator_header_set_lg_email	(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_mime_version	(GtranslatorHeader *header);
-void		 gtranslator_header_set_mime_version	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_mime_version	(GtranslatorHeader *header);
+void		 gtranslator_header_set_mime_version	(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_charset		(GtranslatorHeader *header);
-void		 gtranslator_header_set_charset		(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_charset		(GtranslatorHeader *header);
+void		 gtranslator_header_set_charset		(GtranslatorHeader *header, const gchar *data);
 
-gchar		*gtranslator_header_get_encoding	(GtranslatorHeader *header);
-void		 gtranslator_header_set_encoding	(GtranslatorHeader *header, gchar *data);
+const gchar	*gtranslator_header_get_encoding	(GtranslatorHeader *header);
+void		 gtranslator_header_set_encoding	(GtranslatorHeader *header, const gchar *data);
 
 const gchar	*gtranslator_header_get_plural_forms	(GtranslatorHeader *header);
 void             gtranslator_header_set_plural_forms    (GtranslatorHeader *header,
@@ -118,7 +118,7 @@
 gboolean         gtranslator_header_get_header_changed  (GtranslatorHeader *header);
 void             gtranslator_header_set_header_changed  (GtranslatorHeader *header,
 							 gboolean change);
-							 
+
 gint             gtranslator_header_get_nplurals        (GtranslatorHeader *header);
 
 #endif /* __HEADER_H__ */

Modified: trunk/src/profile.c
==============================================================================
--- trunk/src/profile.c	(original)
+++ trunk/src/profile.c	Thu Oct  2 15:42:35 2008
@@ -123,108 +123,108 @@
 	return profile;
 }
 
-gchar *gtranslator_profile_get_name (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_name (GtranslatorProfile *profile)
 {
 	return profile->priv->name;
 }
 
-void gtranslator_profile_set_name (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_name (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->name)
 		g_free (profile->priv->name);
 	profile->priv->name = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_author_name (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_author_name (GtranslatorProfile *profile)
 {
 	return profile->priv->author_name;
 }
 
-void gtranslator_profile_set_author_name (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_author_name (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->author_name)
 		g_free (profile->priv->author_name);
 	profile->priv->author_name = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_author_email (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_author_email (GtranslatorProfile *profile)
 {
 	return profile->priv->author_email;
 }
 
-void gtranslator_profile_set_author_email (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_author_email (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->author_email)
 		g_free (profile->priv->author_email);
 	profile->priv->author_email = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_language_name (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_language_name (GtranslatorProfile *profile)
 {
 	return profile->priv->language_name;
 }
 
-void gtranslator_profile_set_language_name (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_language_name (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->language_name)
 		g_free (profile->priv->language_name);
 	profile->priv->language_name = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_language_code (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_language_code (GtranslatorProfile *profile)
 {
 	return profile->priv->language_code;
 }
 
-void gtranslator_profile_set_language_code (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_language_code (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->language_code)
 		g_free (profile->priv->language_code);
 	profile->priv->language_code = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_charset (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_charset (GtranslatorProfile *profile)
 {
 	return profile->priv->charset;
 }
 
-void gtranslator_profile_set_charset (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_charset (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->charset)
 		g_free (profile->priv->charset);
 	profile->priv->charset = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_encoding (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_encoding (GtranslatorProfile *profile)
 {
 	return profile->priv->encoding;
 }
 
-void gtranslator_profile_set_encoding (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_encoding (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->encoding)
 		g_free (profile->priv->encoding);
 	profile->priv->encoding = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_group_email (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_group_email (GtranslatorProfile *profile)
 {
 	return profile->priv->group_email;
 }
 
-void gtranslator_profile_set_group_email (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_group_email (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->group_email)
 		g_free (profile->priv->group_email);
 	profile->priv->group_email = g_strdup (data);
 }
 
-gchar *gtranslator_profile_get_plurals (GtranslatorProfile *profile)
+const gchar *gtranslator_profile_get_plurals (GtranslatorProfile *profile)
 {
 	return profile->priv->plurals;
 }
 
-void gtranslator_profile_set_plurals (GtranslatorProfile *profile, gchar *data)
+void gtranslator_profile_set_plurals (GtranslatorProfile *profile, const gchar *data)
 {
 	if (profile->priv->plurals)
 		g_free (profile->priv->plurals);

Modified: trunk/src/profile.h
==============================================================================
--- trunk/src/profile.h	(original)
+++ trunk/src/profile.h	Thu Oct  2 15:42:35 2008
@@ -73,32 +73,32 @@
 GtranslatorProfile	
 		*gtranslator_profile_new		(void);
 
-gchar 		*gtranslator_profile_get_name 		(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_name 		(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_name 		(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_name 		(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_author_name 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_author_name 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_author_name 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_author_name 	(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_author_email 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_author_email 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_author_email 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_author_email 	(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_language_name 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_language_name 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_language_name 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_language_name 	(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_language_code 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_language_code 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_language_code 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_language_code 	(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_charset 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_charset 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_charset 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_charset 	(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_encoding 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_encoding 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_encoding 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_encoding 	(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_group_email 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_group_email 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_group_email 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_group_email 	(GtranslatorProfile *profile, const gchar *data);
 
-gchar 		*gtranslator_profile_get_plurals 	(GtranslatorProfile *profile);
-void 		 gtranslator_profile_set_plurals 	(GtranslatorProfile *profile, gchar *data);
+const gchar 		*gtranslator_profile_get_plurals 	(GtranslatorProfile *profile);
+void 		 gtranslator_profile_set_plurals 	(GtranslatorProfile *profile, const gchar *data);
 
 void		gtranslator_profile_xml_new_entry	(xmlDocPtr doc, GtranslatorProfile *profile);
 GtranslatorProfile

Modified: trunk/src/tab.c
==============================================================================
--- trunk/src/tab.c	(original)
+++ trunk/src/tab.c	Thu Oct  2 15:42:35 2008
@@ -1084,7 +1084,7 @@
 {
 	GtranslatorHeader *header;
 	GtranslatorPoState state;
-	gchar *str;
+	const gchar *str;
 	gchar *tab_name;
 
 	header = gtranslator_po_get_header (tab->priv->po);

Modified: trunk/src/view.c
==============================================================================
--- trunk/src/view.c	(original)
+++ trunk/src/view.c	Thu Oct  2 15:42:35 2008
@@ -831,4 +831,4 @@
 	scheme = gtk_source_style_scheme_manager_get_scheme (manager, scheme_id);
 	
 	gtk_source_buffer_set_style_scheme (buf, scheme);
-}
\ No newline at end of file
+}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]