From 336d9e99702abf8417182e3cb107f7e1c5c4f9b2 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Sat, 30 Apr 2005 19:26:11 +0000 Subject: yelp-bookmarks.c: constify some vars. yelp-settings.c: ditto. 2005-04-30 Paolo Borelli yelp-bookmarks.c: constify some vars. yelp-settings.c: ditto. yelp-window.c: ditto. --- ChangeLog | 6 ++++++ src/yelp-bookmarks.c | 4 ++-- src/yelp-settings.c | 4 ++-- src/yelp-window.c | 2 +- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index b29f6cf4..9637a39d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-04-30 Paolo Borelli + + yelp-bookmarks.c: constify some vars. + yelp-settings.c: ditto. + yelp-window.c: ditto. + 2005-04-14 Abduxukur Abdurixit * configure.in: Added "ug" to ALL_LINGUAS. diff --git a/src/yelp-bookmarks.c b/src/yelp-bookmarks.c index 928940ad..189217f6 100644 --- a/src/yelp-bookmarks.c +++ b/src/yelp-bookmarks.c @@ -81,7 +81,7 @@ struct _YelpWindowData { GtkActionGroup *doc_actions; }; -static const char *ui_description = +static const char ui_description[] = "" " " " " @@ -150,7 +150,7 @@ static gboolean bookmarks_configure_cb (GtkWidget *widget, static void selection_changed_cb (GtkTreeSelection *selection, gpointer data); -static GtkActionEntry popup_entries[] = { +static const GtkActionEntry popup_entries[] = { { "OpenName", GTK_STOCK_OPEN, N_("Open Bookmark in New Window"), NULL, NULL, diff --git a/src/yelp-settings.c b/src/yelp-settings.c index e693bff7..ea70011e 100644 --- a/src/yelp-settings.c +++ b/src/yelp-settings.c @@ -50,7 +50,7 @@ #define d(x) #endif -static const gchar *color_params[YELP_NUM_COLORS] = { +static const gchar * const color_params[YELP_NUM_COLORS] = { "yelp.color.text", "yelp.color.anchor", "yelp.color.background", @@ -67,7 +67,7 @@ static const gchar *color_params[YELP_NUM_COLORS] = { "yelp.color.yellow.fg" }; -static const gchar *icon_params[YELP_NUM_ICONS] = { +static const gchar * const icon_params[YELP_NUM_ICONS] = { "yelp.icon.blockquote", "yelp.icon.caution", "yelp.icon.important", diff --git a/src/yelp-window.c b/src/yelp-window.c index 740873e2..a0d55967 100644 --- a/src/yelp-window.c +++ b/src/yelp-window.c @@ -288,7 +288,7 @@ enum { TARGET_URI_LIST }; -static GtkActionEntry entries[] = { +static const GtkActionEntry entries[] = { { "FileMenu", NULL, N_("_File") }, { "EditMenu", NULL, N_("_Edit") }, { "GoMenu", NULL, N_("_Go") }, -- cgit v1.2.1