[gtk+/places-sidebar: 40/40] Remove the switch location timer during drag_leave
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/places-sidebar: 40/40] Remove the switch location timer during drag_leave
- Date: Sat, 20 Apr 2013 20:26:12 +0000 (UTC)
commit 2d84ebeeb8aa111f263632139023f31f6ee329dd
Author: Federico Mena Quintero <federico gnome org>
Date: Sat Apr 20 16:21:33 2013 -0400
Remove the switch location timer during drag_leave
So that hovering in and out of the sidebar quickly doesn't cause a location change in the caller.
gtk/gtkplacessidebar.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index b419eac..677f2cf 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1688,6 +1688,8 @@ drag_leave_callback (GtkTreeView *tree_view,
sidebar->drag_leave_timeout_id = gdk_threads_add_timeout (500, drag_leave_timeout_cb, sidebar);
+ remove_switch_location_timer (sidebar);
+
g_signal_stop_emission_by_name (tree_view, "drag-leave");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]