aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-notebook.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-notebook.c
parent11a2169cd187c06da6068cd8fa5f725202c680d4 (diff)
downloadgsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.gz
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.bz2
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.lz
gsoc2013-epiphany-0321e0c109de8225a82868cb1dc8cfb5455a544f.tar.xz
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-notebook.c')
-rw-r--r--src/ephy-notebook.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 8ba8c29ba..182849ce6 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -86,12 +86,11 @@ static void move_tab_to_another_notebook (EphyNotebook *src,
/* Local variables */
static GdkCursor *cursor = NULL;
-static GtkTargetEntry url_drag_types [] =
+static const GtkTargetEntry url_drag_types [] =
{
{ EPHY_DND_URI_LIST_TYPE, 0, 0 },
{ EPHY_DND_URL_TYPE, 0, 1 }
};
-static guint n_url_drag_types = G_N_ELEMENTS (url_drag_types);
enum
{
@@ -808,7 +807,7 @@ ephy_notebook_init (EphyNotebook *notebook)
NULL);
gtk_drag_dest_set (GTK_WIDGET(notebook), GTK_DEST_DEFAULT_MOTION |
GTK_DEST_DEFAULT_DROP,
- url_drag_types,n_url_drag_types,
+ url_drag_types, G_N_ELEMENTS (url_drag_types),
GDK_ACTION_MOVE | GDK_ACTION_COPY);
notebook->priv->tabs_vis_notifier_id = eel_gconf_notification_add
@@ -1049,7 +1048,7 @@ ephy_notebook_add_tab (EphyNotebook *nb,
g_signal_connect (G_OBJECT(label), "drag_data_received",
G_CALLBACK(notebook_drag_data_received_cb), tab);
gtk_drag_dest_set (label, GTK_DEST_DEFAULT_ALL,
- url_drag_types,n_url_drag_types,
+ url_drag_types, G_N_ELEMENTS (url_drag_types),
GDK_ACTION_MOVE | GDK_ACTION_COPY);
sync_icon (tab, NULL, label);