aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-encoding-menu.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-04-19 19:14:42 +0800
committerChristian Persch <chpe@src.gnome.org>2005-04-19 19:14:42 +0800
commit0321e0c109de8225a82868cb1dc8cfb5455a544f (patch)
treec49d7669e88755118428d7f621b909ae4f04e449 /src/ephy-encoding-menu.c
parent11a2169cd187c06da6068cd8fa5f725202c680d4 (diff)
downloadgsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.gz
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.zst
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.zip
More constification.
2005-04-19 Christian Persch <chpe@cvs.gnome.org> * lib/egg/egg-editable-toolbar.c: (create_dock): * lib/egg/egg-toolbar-editor.c: (editor_create_item), (update_editor_sheet): * lib/ephy-file-helpers.c: (ephy_file): * lib/widgets/ephy-location-entry.c: (ephy_location_entry_construct_contents): * lib/widgets/ephy-node-view.c: (ephy_node_view_enable_drag_dest), (ephy_node_view_enable_drag_source): * lib/widgets/ephy-node-view.h: * src/ephy-encoding-menu.c: (ephy_encoding_menu_set_window): * src/ephy-history-window.c: (ephy_history_window_construct): * src/ephy-main.c: * src/ephy-notebook.c: (ephy_notebook_init), (ephy_notebook_add_tab): * src/ppview-toolbar.c: * src/window-commands.c: (window_cmd_help_about): More constification.
Diffstat (limited to 'src/ephy-encoding-menu.c')
-rw-r--r--src/ephy-encoding-menu.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ephy-encoding-menu.c b/src/ephy-encoding-menu.c
index 37ddd6337..a687d0421 100644
--- a/src/ephy-encoding-menu.c
+++ b/src/ephy-encoding-menu.c
@@ -345,21 +345,19 @@ ephy_encoding_menu_automatic_cb (GtkAction *action, EphyEncodingMenu *menu)
ephy_embed_set_encoding (embed, "");
}
-static GtkActionEntry menu_entries [] =
+static const GtkActionEntry menu_entries [] =
{
{ "ViewEncodingOther", NULL, N_("_Other..."), NULL,
N_("Other encodings"),
G_CALLBACK (ephy_encoding_menu_view_dialog_cb) }
};
-static guint n_menu_entries = G_N_ELEMENTS (menu_entries);
-static GtkToggleActionEntry toggle_menu_entries [] =
+static const GtkToggleActionEntry toggle_menu_entries [] =
{
{ "ViewEncodingAutomatic", NULL, N_("_Automatic"), NULL,
N_("Use the encoding specified by the document"),
G_CALLBACK (ephy_encoding_menu_automatic_cb), FALSE }
};
-static const guint n_toggle_menu_entries = G_N_ELEMENTS (toggle_menu_entries);
static void
ephy_encoding_menu_set_window (EphyEncodingMenu *menu, EphyWindow *window)
@@ -380,9 +378,9 @@ ephy_encoding_menu_set_window (EphyEncodingMenu *menu, EphyWindow *window)
menu->priv->action_group = action_group;
gtk_action_group_add_actions (action_group, menu_entries,
- n_menu_entries, menu);
+ G_N_ELEMENTS (menu_entries), menu);
gtk_action_group_add_toggle_actions (action_group, toggle_menu_entries,
- n_toggle_menu_entries, menu);
+ G_N_ELEMENTS (toggle_menu_entries), menu);
/* add actions for the existing encodings */
encodings = ephy_encodings_get_all (menu->priv->encodings);