[gtk+/gtk-2-24] GtkTreeView: make tree expanding/collapsing more robust
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] GtkTreeView: make tree expanding/collapsing more robust
- Date: Thu, 31 May 2012 09:04:51 +0000 (UTC)
commit b32a9eb691920f21ad3b9127c833aaba15727c4b
Author: Michael Natterer <mitch gimp org>
Date: Thu May 31 11:02:09 2012 +0200
GtkTreeView: make tree expanding/collapsing more robust
gtk_grab_remove() *after* we did the expanding/collapsing, otherwise
grab_notify() might kick in and mess with our state. Fixes bug #675835.
gtk/gtktreeview.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 75e1215..85d9ea7 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -3057,7 +3057,6 @@ gtk_tree_view_button_release (GtkWidget *widget,
if (event->button == 1)
{
- gtk_grab_remove (widget);
if (tree_view->priv->button_pressed_node == tree_view->priv->prelight_node &&
GTK_TREE_VIEW_FLAG_SET (tree_view, GTK_TREE_VIEW_ARROW_PRELIT))
{
@@ -3081,6 +3080,8 @@ gtk_tree_view_button_release (GtkWidget *widget,
tree_view->priv->button_pressed_tree = NULL;
tree_view->priv->button_pressed_node = NULL;
+
+ gtk_grab_remove (widget);
}
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]