[gtk+/xi2] GtkPaned: stop drag if grab device is shadowed.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/xi2] GtkPaned: stop drag if grab device is shadowed.
- Date: Tue, 9 Mar 2010 17:53:38 +0000 (UTC)
commit 0ffb3c6a659e76f96e0ad89a7d72cf8aa1f0164e
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Mar 9 18:22:31 2010 +0100
GtkPaned: stop drag if grab device is shadowed.
gtk/gtkpaned.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index 8a47d91..68aa6f5 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1271,8 +1271,12 @@ gtk_paned_grab_notify (GtkWidget *widget,
gboolean was_grabbed)
{
GtkPaned *paned = GTK_PANED (widget);
+ GdkDevice *grab_device;
- if (!was_grabbed && paned->in_drag)
+ grab_device = paned->priv->grab_device;
+
+ if (paned->in_drag && grab_device &&
+ gtk_widget_device_is_shadowed (widget, grab_device))
stop_drag (paned);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]