diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-04-19 19:14:42 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-04-19 19:14:42 +0800 |
commit | 0321e0c109de8225a82868cb1dc8cfb5455a544f (patch) | |
tree | c49d7669e88755118428d7f621b909ae4f04e449 /lib/widgets | |
parent | 11a2169cd187c06da6068cd8fa5f725202c680d4 (diff) | |
download | gsoc2013-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 'lib/widgets')
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 5 | ||||
-rw-r--r-- | lib/widgets/ephy-node-view.c | 4 | ||||
-rw-r--r-- | lib/widgets/ephy-node-view.h | 4 |
3 files changed, 6 insertions, 7 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 426c874b9..63ca5cb38 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -87,13 +87,12 @@ web_prefixes [] = { "www.", 4 } }; -static GtkTargetEntry url_drag_types [] = +static const GtkTargetEntry url_drag_types [] = { { EPHY_DND_URL_TYPE, 0, 0 }, { EPHY_DND_URI_LIST_TYPE, 0, 1 }, { EPHY_DND_TEXT_TYPE, 0, 2 } }; -static int n_url_drag_types = G_N_ELEMENTS (url_drag_types); static void ephy_location_entry_class_init (EphyLocationEntryClass *klass); static void ephy_location_entry_init (EphyLocationEntry *le); @@ -568,7 +567,7 @@ ephy_location_entry_construct_contents (EphyLocationEntry *entry) gtk_event_box_set_visible_window (GTK_EVENT_BOX (priv->icon_ebox), FALSE); gtk_box_pack_start (GTK_BOX (hbox), priv->icon_ebox, FALSE, FALSE, 2); gtk_drag_source_set (priv->icon_ebox, GDK_BUTTON1_MASK, - url_drag_types, n_url_drag_types, + url_drag_types, G_N_ELEMENTS (url_drag_types), GDK_ACTION_ASK | GDK_ACTION_COPY | GDK_ACTION_LINK); gtk_tooltips_set_tip (priv->tips, priv->icon_ebox, _("Drag and drop this icon to create a link to this page"), NULL); diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c index a0d229d64..668ac4ba6 100644 --- a/lib/widgets/ephy-node-view.c +++ b/lib/widgets/ephy-node-view.c @@ -443,7 +443,7 @@ drag_drop_cb (GtkWidget *widget, void ephy_node_view_enable_drag_dest (EphyNodeView *view, - GtkTargetEntry *types, + const GtkTargetEntry *types, int n_types) { GtkWidget *treeview; @@ -1402,7 +1402,7 @@ ephy_node_view_select_node (EphyNodeView *view, void ephy_node_view_enable_drag_source (EphyNodeView *view, - GtkTargetEntry *types, + const GtkTargetEntry *types, int n_types, int base_drag_column, int extra_drag_column) diff --git a/lib/widgets/ephy-node-view.h b/lib/widgets/ephy-node-view.h index dab2f6da8..bd8ff1fb1 100644 --- a/lib/widgets/ephy-node-view.h +++ b/lib/widgets/ephy-node-view.h @@ -112,13 +112,13 @@ void ephy_node_view_select_node (EphyNodeView *view, EphyNode *node); void ephy_node_view_enable_drag_source (EphyNodeView *view, - GtkTargetEntry *types, + const GtkTargetEntry *types, int n_types, int base_drag_column_id, int extra_drag_column_id); void ephy_node_view_enable_drag_dest (EphyNodeView *view, - GtkTargetEntry *types, + const GtkTargetEntry *types, int n_types); void ephy_node_view_edit (EphyNodeView *view, |