[gitg] Check for bin window in tree view dnd



commit 381adbdfb6e2d72dd8ae7065fba1f143a8ea5a04
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun May 30 18:22:59 2010 +0200

    Check for bin window in tree view dnd

 gitg/gitg-dnd.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-dnd.c b/gitg/gitg-dnd.c
index a55d84d..94ee98e 100644
--- a/gitg/gitg-dnd.c
+++ b/gitg/gitg-dnd.c
@@ -552,6 +552,11 @@ gitg_drag_source_event_cb (GtkWidget   *widget,
 {
 	gboolean retval = FALSE;
 
+	if (event->any.window != gtk_tree_view_get_bin_window (GTK_TREE_VIEW (widget)))
+	{
+		return FALSE;
+	}
+
 	switch (event->type)
 	{
 		case GDK_BUTTON_PRESS:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]