[nautilus] Fix window dragging on the path bar
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Fix window dragging on the path bar
- Date: Sun, 16 Feb 2014 02:06:04 +0000 (UTC)
commit 2fa90048ebf41af71bbae20e9c5934286a049d75
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Feb 15 20:44:43 2014 -0500
Fix window dragging on the path bar
GtkWindow relies on button press, release and motion notify
events being propagated. Therefore, we need to select for
motion notify events to make window dragging work.
https://bugzilla.gnome.org/show_bug.cgi?id=722542
src/nautilus-pathbar.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 9d94f28..7d51d56 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -739,7 +739,8 @@ nautilus_path_bar_realize (GtkWidget *widget)
attributes.event_mask |=
GDK_SCROLL_MASK |
GDK_BUTTON_PRESS_MASK |
- GDK_BUTTON_RELEASE_MASK;
+ GDK_BUTTON_RELEASE_MASK |
+ GDK_POINTER_MOTION_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y;
path_bar->priv->event_window = gdk_window_new (gtk_widget_get_parent_window (widget),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]