From 4e32ede28751a90f747ccd0a7144bd10aa613a36 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 23 Oct 2001 16:02:23 +0000 Subject: Remove G_DISABLE_CONST_RETURNS. Tue Oct 23 11:53:00 2001 Owen Taylor * gtk/Makefile.am (INCLUDES): Remove G_DISABLE_CONST_RETURNS. * gtk/gtkfontsel.[ch]: Make gtk_font_selection_get_font() G_CONST_RETURN. (Murray Cumming) * gtk/gtkfontsel.c (gtk_font_selection_dialog_get_preview_text): Make G_CONST_RETURN. * gtk/gtkfilesel.c (open_user_dir): Fix bug with freeing results of g_get_home_dir(). * gtk/gtkfilesel.c: Make filesel->fileop_file a duplicated copy. Storing the return from gtk_entry_get_text() is evil. * gtk/gtkcombo.c gtk/gtkcellrenderertext.c gtk/gtkbindings.c gtk/gtkfilesel.c gtk/gtkfontsel.c gtk/gtkimmodule.c gtk/gtkobject.c gtk/gtkoldeditable.c gtk/gtktreedatalist.c gtk/gtksignal.c: Add const. * gdk/x11/gdkkeys-x11.c (get_direction): Add missing const. * gtk/gtktreeview.c: Namespace object data keys to be safe, even if we are setting them on private widgets. * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): Duplicate entry->text before setting it as object data. --- gtk/gtkimmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkimmodule.c') diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c index 1086d9fc6..ea40819e3 100644 --- a/gtk/gtkimmodule.c +++ b/gtk/gtkimmodule.c @@ -482,7 +482,7 @@ _gtk_im_module_get_default_context_id (const gchar *locale) gint best_goodness = 0; gint i; gchar *tmp_locale, *tmp; - gchar *envvar; + const gchar *envvar; if (!contexts_hash) gtk_im_module_init (); -- cgit v1.2.1