summaryrefslogtreecommitdiff
path: root/gtk/gtkbindings.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-10-23 16:02:23 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-10-23 16:02:23 +0000
commit4e32ede28751a90f747ccd0a7144bd10aa613a36 (patch)
tree29f2e22d6a8c302ccc3f6a420316f49754f9394f /gtk/gtkbindings.c
parent0d5635b36613c0e5eca772e223001d1858433c28 (diff)
downloadgtk+-4e32ede28751a90f747ccd0a7144bd10aa613a36.tar.gz
Remove G_DISABLE_CONST_RETURNS.
Tue Oct 23 11:53:00 2001 Owen Taylor <otaylor@redhat.com> * 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.
Diffstat (limited to 'gtk/gtkbindings.c')
-rw-r--r--gtk/gtkbindings.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c
index 66ae70f656..902410e119 100644
--- a/gtk/gtkbindings.c
+++ b/gtk/gtkbindings.c
@@ -793,8 +793,8 @@ static inline gboolean
binding_match_activate (GSList *pspec_list,
GtkObject *object,
guint path_length,
- gchar *path,
- gchar *path_reversed)
+ const gchar *path,
+ const gchar *path_reversed)
{
GSList *slist;
@@ -938,7 +938,8 @@ gtk_bindings_activate (GtkObject *object,
while (class_type && !handled)
{
guint path_length;
- gchar *path, *path_reversed;
+ const gchar *path;
+ gchar *path_reversed;
path = gtk_type_name (class_type);
path_reversed = g_strdup (path);