changeset 109826:deed7c075550

* gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
author Jan D <jan.h.d@swipnet.se>
date Wed, 18 Aug 2010 08:30:54 +0200
parents a2dc02f10ab3
children 2110ce0ca5bc
files src/ChangeLog src/gtkutil.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Aug 18 08:16:55 2010 +0200
+++ b/src/ChangeLog	Wed Aug 18 08:30:54 2010 +0200
@@ -1,3 +1,7 @@
+2010-08-18  Jan Djärv  <jan.h.d@swipnet.se>
+
+	* gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
+
 2010-08-18  David De La Harpe Golden  <david@harpegolden.net>
 
 	* nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
--- a/src/gtkutil.c	Wed Aug 18 08:16:55 2010 +0200
+++ b/src/gtkutil.c	Wed Aug 18 08:30:54 2010 +0200
@@ -4292,8 +4292,8 @@
       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);