From 2851547be28ce8bd8b1e5eac1ea623315c939690 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 8 Dec 2004 05:57:04 +0000 Subject: [PATCH] Use button->event_window for the fake leave event, otherwise the button 2004-12-08 Matthias Clasen * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Use button->event_window for the fake leave event, otherwise the button ignores it. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtktreeview.c | 2 +- 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9fd3807e94..783de5f3cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-08 Matthias Clasen + + * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Use + button->event_window for the fake leave event, otherwise + the button ignores it. + 2004-12-07 Matthias Clasen * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Make this diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9fd3807e94..783de5f3cb 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2004-12-08 Matthias Clasen + + * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Use + button->event_window for the fake leave event, otherwise + the button ignores it. + 2004-12-07 Matthias Clasen * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Make this diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9fd3807e94..783de5f3cb 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2004-12-08 Matthias Clasen + + * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Use + button->event_window for the fake leave event, otherwise + the button ignores it. + 2004-12-07 Matthias Clasen * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Make this diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9fd3807e94..783de5f3cb 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2004-12-08 Matthias Clasen + + * gtk/gtktreeview.c (_gtk_tree_view_column_start_drag): Use + button->event_window for the fake leave event, otherwise + the button ignores it. + 2004-12-07 Matthias Clasen * gtk/gtkiconview.c (gtk_icon_view_rows_reordered): Make this diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 74fce907a0..c6d727e4b4 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -8115,7 +8115,7 @@ _gtk_tree_view_column_start_drag (GtkTreeView *tree_view, send_event = gdk_event_new (GDK_LEAVE_NOTIFY); send_event->crossing.send_event = TRUE; - send_event->crossing.window = g_object_ref (column->button->window); + send_event->crossing.window = g_object_ref (GTK_BUTTON (column->button)->event_window); send_event->crossing.subwindow = NULL; send_event->crossing.detail = GDK_NOTIFY_ANCESTOR; send_event->crossing.time = GDK_CURRENT_TIME;