[nautilus] pathbar: make dragging from toolbar work again
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] pathbar: make dragging from toolbar work again
- Date: Tue, 13 Mar 2012 15:22:08 +0000 (UTC)
commit d865bc50459fb1349a761c3c7029bad7f13fc67c
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Mar 13 11:20:48 2012 -0400
pathbar: make dragging from toolbar work again
This was a regression from the recent refactorings in NautilusPathbar.
Since we now have an event window, if we want button events to reach the
parent toolbar, we have to select for such events when we realize the
event window.
src/nautilus-pathbar.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index 19c7631..36fe6a3 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -767,7 +767,10 @@ nautilus_path_bar_realize (GtkWidget *widget)
attributes.height = allocation.height;
attributes.wclass = GDK_INPUT_ONLY;
attributes.event_mask = gtk_widget_get_events (widget);
- attributes.event_mask |= GDK_SCROLL_MASK;
+ attributes.event_mask |=
+ GDK_SCROLL_MASK |
+ GDK_BUTTON_PRESS_MASK |
+ GDK_BUTTON_RELEASE_MASK;
attributes_mask = GDK_WA_X | GDK_WA_Y;
path_bar->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]