From 1e5208d26c293d3569f7410397ea18755fe9f73b Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Sun, 11 Jul 2004 11:43:18 +0000 Subject: Disable sliding when not in toolbar editing mode. We cant assume 2004-07-11 Marco Pesenti Gritti * lib/egg/egg-editable-toolbar.c: (toolbar_drag_motion_cb): * src/bookmarks/ephy-bookmark-action.c: (connect_proxy): * src/bookmarks/ephy-topic-action.c: (connect_proxy): Disable sliding when not in toolbar editing mode. We cant assume GDK_ACTION_MOVE there. --- src/bookmarks/ephy-topic-action.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'src/bookmarks/ephy-topic-action.c') diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c index 5c9931671..0406d5c8b 100644 --- a/src/bookmarks/ephy-topic-action.c +++ b/src/bookmarks/ephy-topic-action.c @@ -584,28 +584,6 @@ build_menu (EphyTopicAction *action) } } -static void -drag_begin_cb (GtkWidget *widget, GdkDragContext *context, EphyTopicAction *action) -{ - GtkWidget *tool_item; - - tool_item = gtk_widget_get_ancestor (widget, GTK_TYPE_TOOL_ITEM); - g_return_if_fail (tool_item != NULL); - - gtk_widget_hide (widget); -} - -static void -drag_end_cb (GtkWidget *widget, GdkDragContext *context, EphyTopicAction *action) -{ - GtkWidget *tool_item; - - tool_item = gtk_widget_get_ancestor (widget, GTK_TYPE_TOOL_ITEM); - g_return_if_fail (tool_item != NULL); - - gtk_widget_show (widget); -} - static void drag_data_get_cb (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *selection_data, guint info, @@ -877,10 +855,6 @@ connect_proxy (GtkAction *action, GtkWidget *proxy) G_CALLBACK (drag_data_get_cb), action); g_signal_connect (button, "drag_data_delete", G_CALLBACK (drag_data_delete_cb), action); - g_signal_connect (button, "drag_begin", - G_CALLBACK (drag_begin_cb), action); - g_signal_connect (button, "drag_end", - G_CALLBACK (drag_end_cb), action); } } -- cgit v1.2.3