diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-10-21 20:51:58 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-10-21 20:51:58 +0800 |
commit | c94b299f746a91838c8fdedc868fa249cb3edf3a (patch) | |
tree | deb5192b831763e6f069af21b1f03d73a6ff4dff /lib/egg/egg-toolbar-editor.c | |
parent | 81b166aac1d79e4fda234c2528f025d2ab1768c7 (diff) | |
download | gsoc2013-epiphany-c94b299f746a91838c8fdedc868fa249cb3edf3a.tar gsoc2013-epiphany-c94b299f746a91838c8fdedc868fa249cb3edf3a.tar.gz gsoc2013-epiphany-c94b299f746a91838c8fdedc868fa249cb3edf3a.tar.bz2 gsoc2013-epiphany-c94b299f746a91838c8fdedc868fa249cb3edf3a.tar.lz gsoc2013-epiphany-c94b299f746a91838c8fdedc868fa249cb3edf3a.tar.xz gsoc2013-epiphany-c94b299f746a91838c8fdedc868fa249cb3edf3a.tar.zst gsoc2013-epiphany-c94b299f746a91838c8fdedc868fa249cb3edf3a.zip |
Use new api for highlighting and make it pick up and drop behavior
2003-10-21 Marco Pesenti Gritti <marco@gnome.org>
* lib/egg/egg-editable-toolbar.c: (drag_begin_cb), (drag_end_cb),
(set_drag_cursor), (unset_drag_cursor), (create_item_from_action),
(create_item), (data_is_separator), (set_status_pending),
(get_status_pending), (drag_data_received_cb), (remove_toolbar_cb),
(popup_toolbar_context_menu_cb), (free_dragged_item),
(toolbar_drag_drop_cb), (toolbar_drag_motion_cb),
(toolbar_drag_leave_cb), (create_toolbar), (item_removed_cb),
(egg_editable_toolbar_set_drag_dest):
* lib/egg/egg-toolbar-editor.c: (drag_begin_cb), (drag_end_cb),
(editor_create_item):
Use new api for highlighting and make it pick up and drop behavior
Diffstat (limited to 'lib/egg/egg-toolbar-editor.c')
-rwxr-xr-x | lib/egg/egg-toolbar-editor.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/egg/egg-toolbar-editor.c b/lib/egg/egg-toolbar-editor.c index 7cf431350..d5f8f718e 100755 --- a/lib/egg/egg-toolbar-editor.c +++ b/lib/egg/egg-toolbar-editor.c @@ -232,6 +232,20 @@ egg_toolbar_editor_new (GtkUIManager *merge, } static void +drag_begin_cb (GtkWidget *widget, + GdkDragContext *context) +{ + gtk_widget_hide (widget); +} + +static void +drag_end_cb (GtkWidget *widget, + GdkDragContext *context) +{ + gtk_widget_show (widget); +} + +static void editor_drag_data_received_cb (GtkWidget *widget, GdkDragContext *context, gint x, @@ -345,6 +359,10 @@ editor_create_item (EggToolbarEditor *editor, gtk_drag_source_set (event_box, GDK_BUTTON1_MASK, source_drag_types, n_source_drag_types, action); + g_signal_connect (event_box, "drag_begin", + G_CALLBACK (drag_begin_cb), NULL); + g_signal_connect (event_box, "drag_end", + G_CALLBACK (drag_end_cb), NULL); g_signal_connect (event_box, "drag_data_get", G_CALLBACK (drag_data_get_cb), editor); g_signal_connect (event_box, "drag_data_delete", |