diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-01-30 07:20:47 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-01-30 07:20:47 +0800 |
commit | c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2 (patch) | |
tree | 73461aa9c690a3fc83c05e8b2df5d768c64b269a /lib/ephy-dnd.c | |
parent | dff9e866bb4f2fc18074d5c638733ee860746f9b (diff) | |
download | gsoc2013-epiphany-c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2.tar gsoc2013-epiphany-c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2.tar.gz gsoc2013-epiphany-c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2.tar.bz2 gsoc2013-epiphany-c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2.tar.lz gsoc2013-epiphany-c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2.tar.xz gsoc2013-epiphany-c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2.tar.zst gsoc2013-epiphany-c1008f8781b7940bb7096bc6e5fe250ec6ebcaf2.zip |
Fix bookmarks/smart bookmarks add to the toolbars.
2003-01-30 Marco Pesenti Gritti <marco@it.gnome.org>
* lib/ephy-dnd.c: (ephy_dnd_url_drag_source_set),
(ephy_dnd_enable_model_drag_source):
* lib/ephy-dnd.h:
* lib/widgets/ephy-editable-toolbar.c: (item_node_new),
(add_action), (parse_item_list), (toolbar_list_to_xml),
(drag_data_received_cb), (setup_toolbar_drag):
* src/toolbar.c: (toolbar_get_action):
Fix bookmarks/smart bookmarks add to the toolbars.
Diffstat (limited to 'lib/ephy-dnd.c')
-rw-r--r-- | lib/ephy-dnd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ephy-dnd.c b/lib/ephy-dnd.c index b70fa284a..03fa83544 100644 --- a/lib/ephy-dnd.c +++ b/lib/ephy-dnd.c @@ -27,6 +27,7 @@ static GtkTargetEntry url_drag_types [] = { EPHY_DND_TEXT_TYPE, 0, EPHY_DND_TEXT }, { EPHY_DND_URL_TYPE, 0, EPHY_DND_URL } }; +static int n_url_drag_types = G_N_ELEMENTS (url_drag_types); /* Encode a "_NETSCAPE_URL_" selection. * As far as I can tell, Netscape is expecting a single @@ -94,7 +95,7 @@ ephy_dnd_url_drag_source_set (GtkWidget *widget) gtk_drag_source_set (widget, GDK_BUTTON1_MASK, url_drag_types, - G_N_ELEMENTS (url_drag_types), + n_url_drag_types, GDK_ACTION_COPY); } @@ -103,7 +104,7 @@ ephy_dnd_enable_model_drag_source (GtkWidget *treeview) { gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (treeview), GDK_BUTTON1_MASK, - url_drag_types, G_N_ELEMENTS (url_drag_types), + url_drag_types, n_url_drag_types, GDK_ACTION_COPY); } |