From e1e18511e3a9c914db7a7a6fbae5737f7cf96553 Mon Sep 17 00:00:00 2001 From: Jan D Date: Wed, 18 Aug 2010 08:30:54 +0200 Subject: [PATCH] * gtkutil.c (update_frame_tool_bar): Literal stings are const char*. --- src/ChangeLog | 4 ++++ src/gtkutil.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 589265586c7..060b8fb739f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-08-18 Jan Djärv + + * gtkutil.c (update_frame_tool_bar): Literal stings are const char*. + 2010-08-18 David De La Harpe Golden * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define. diff --git a/src/gtkutil.c b/src/gtkutil.c index 5cfc980c5b8..dbd48eb5272 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -4292,8 +4292,8 @@ update_frame_tool_bar (FRAME_PTR f) GtkWidget *wbutton = NULL; GtkWidget *weventbox; Lisp_Object specified_file; - char *label = (STRINGP (PROP (TOOL_BAR_ITEM_LABEL)) - ? SSDATA (PROP (TOOL_BAR_ITEM_LABEL)) : ""); + const char *label = (STRINGP (PROP (TOOL_BAR_ITEM_LABEL)) + ? SSDATA (PROP (TOOL_BAR_ITEM_LABEL)) : ""); ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (wtoolbar), i); -- 2.39.2