diff options
author | Carlos Garnacho <carlos@imendio.com> | 2008-03-03 21:15:21 +0000 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2008-03-03 21:15:21 +0000 |
commit | 761749c26b9c300da5a5db08837af0e73b857624 (patch) | |
tree | 29375d93f6d028547d1c8c1fc9c7e1b7cbdd374e /gtk/gtkpathbar.h | |
parent | 845a4632d9c9bb909b4dc05e0a98123d6b4abd66 (diff) | |
download | gtk+-761749c26b9c300da5a5db08837af0e73b857624.tar.gz |
bgo417389 - Scrollwheel for GtkPathBar
2008-03-03 Carlos Garnacho <carlos@imendio.com>
Fix http://bugzilla.gnome.org/show_bug.cgi?id=417389 - Make the
scrollwheel work in GtkPathBar.
* gtk/gtkpathbar.h (struct _GtkPathBar): New field event_window.
* gtk/gtkpathbar.c (gtk_path_bar_realize): New function. Create
an input-only window, event_window, which we'll use to capture
scroll events.
(gtk_path_bar_map): Show the event_window under the rest of the
windows, so it will be a catch-all for unhandled events.
Signed-off-by: Federico Mena Quintero <federico@gnu.org>
svn path=/trunk/; revision=19699
Diffstat (limited to 'gtk/gtkpathbar.h')
-rw-r--r-- | gtk/gtkpathbar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkpathbar.h b/gtk/gtkpathbar.h index 3d32bbaad8..aa56ff81ca 100644 --- a/gtk/gtkpathbar.h +++ b/gtk/gtkpathbar.h @@ -51,6 +51,8 @@ struct _GtkPathBar GdkPixbuf *home_icon; GdkPixbuf *desktop_icon; + GdkWindow *event_window; + GList *button_list; GList *first_scrolled_button; GList *fake_root; |