[gnome-terminal] notebook: Fix scroll event handling
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] notebook: Fix scroll event handling
- Date: Thu, 17 Jan 2013 13:24:14 +0000 (UTC)
commit ce715cc2ddd5a1fb0b00e0c2d3d2ce654db96540
Author: Christian Persch <chpe gnome org>
Date: Thu Jan 17 14:23:20 2013 +0100
notebook: Fix scroll event handling
Chain up to the proper handler.
src/terminal-notebook.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-notebook.c b/src/terminal-notebook.c
index fb348e6..08e879c 100644
--- a/src/terminal-notebook.c
+++ b/src/terminal-notebook.c
@@ -318,9 +318,12 @@ terminal_notebook_scroll_event (GtkWidget *widget,
{
GtkNotebook *notebook = GTK_NOTEBOOK (widget);
gboolean (* scroll_event) (GtkWidget *, GdkEventScroll *) =
- GTK_WIDGET_GET_CLASS (widget)->scroll_event;
+ GTK_WIDGET_GET_CLASS (terminal_notebook_parent_class)->scroll_event;
GtkWidget *child, *event_widget, *action_widget;
+ if ((event->state & gtk_accelerator_get_default_mod_mask ()) != 0)
+ goto chain_up;
+
child = gtk_notebook_get_nth_page (notebook, gtk_notebook_get_current_page (notebook));
if (child == NULL)
goto chain_up;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]