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/egg | |
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/egg')
-rwxr-xr-x | lib/egg/egg-editable-toolbar.c | 5 | ||||
-rwxr-xr-x | lib/egg/egg-toolbar-editor.c | 10 |
2 files changed, 6 insertions, 9 deletions
diff --git a/lib/egg/egg-editable-toolbar.c b/lib/egg/egg-editable-toolbar.c index aeaccbdbf..210cebe8c 100755 --- a/lib/egg/egg-editable-toolbar.c +++ b/lib/egg/egg-editable-toolbar.c @@ -47,10 +47,9 @@ static void egg_editable_toolbar_finalize (GObject *object); #define MIN_TOOLBAR_HEIGHT 20 -static GtkTargetEntry dest_drag_types[] = { +static const GtkTargetEntry dest_drag_types[] = { {EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0}, }; -static int n_dest_drag_types = G_N_ELEMENTS (dest_drag_types); enum { @@ -700,7 +699,7 @@ create_dock (EggEditableToolbar *t) gtk_box_pack_start (GTK_BOX (hbox), toolbar, TRUE, TRUE, 0); gtk_drag_dest_set (toolbar, 0, - dest_drag_types, n_dest_drag_types, + dest_drag_types, G_N_ELEMENTS (dest_drag_types), GDK_ACTION_MOVE | GDK_ACTION_COPY); g_signal_connect (toolbar, "drag_drop", diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c index f17dd41a5..185703819 100755 --- a/lib/egg/egg-toolbar-editor.c +++ b/lib/egg/egg-toolbar-editor.c @@ -35,15 +35,13 @@ #include <gtk/gtkstock.h> #include <gtk/gtkhbox.h> -static GtkTargetEntry dest_drag_types[] = { +static const GtkTargetEntry dest_drag_types[] = { {EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0}, }; -static int n_dest_drag_types = G_N_ELEMENTS (dest_drag_types); -static GtkTargetEntry source_drag_types[] = { +static const GtkTargetEntry source_drag_types[] = { {EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0}, }; -static int n_source_drag_types = G_N_ELEMENTS (source_drag_types); static void egg_toolbar_editor_class_init (EggToolbarEditorClass *klass); static void egg_toolbar_editor_init (EggToolbarEditor *t); @@ -452,7 +450,7 @@ editor_create_item (EggToolbarEditor *editor, gtk_widget_show (event_box); gtk_drag_source_set (event_box, GDK_BUTTON1_MASK, - source_drag_types, n_source_drag_types, action); + source_drag_types, G_N_ELEMENTS (source_drag_types), action); g_signal_connect (event_box, "drag_data_get", G_CALLBACK (drag_data_get_cb), editor); g_signal_connect (event_box, "drag_data_delete", @@ -509,7 +507,7 @@ update_editor_sheet (EggToolbarEditor *editor) gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (editor->priv->scrolled_window), table); gtk_drag_dest_set (table, GTK_DEST_DEFAULT_ALL, - dest_drag_types, n_dest_drag_types, GDK_ACTION_MOVE); + dest_drag_types, G_N_ELEMENTS (dest_drag_types), GDK_ACTION_MOVE); g_signal_connect (table, "drag_data_received", G_CALLBACK (editor_drag_data_received_cb), editor); |