GNOME Bugzilla – Bug 570367
GtkStockItem members should be const char *
Last modified: 2014-03-13 05:29:26 UTC
+++ This bug was initially created as a clone of Bug #565665 +++ It's currently char *. This causes warnings in code like: const GtkStockItem my_stock_items[] = { { "my-stock", N_("MyStock"), 0, 0, "my-domain" }, }; with -Wwrite-strings. Since one is not expected to modify these members, they should be changed to const. We made a similar change in glib recently; it shouldn't cause any problems.
Created attachment 127841 [details] [review] [PATCH] Bug 570367 – GtkStockItem members should be const char * gtk/gtkstock.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
Ping? Can we get this for 2.18 ?
Still in 3.5