summaryrefslogtreecommitdiff
path: root/src/terminal-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-window.c')
-rw-r--r--src/terminal-window.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 132b98b..e0004c3 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2931,6 +2931,24 @@ notebook_scroll_event_cb (GtkWidget *widget,
case GDK_SCROLL_UP:
gtk_notebook_prev_page (notebook);
break;
+ case GDK_SCROLL_SMOOTH:
+ switch (gtk_notebook_get_tab_pos (notebook)) {
+ case GTK_POS_LEFT:
+ case GTK_POS_RIGHT:
+ if (event->delta_y > 0)
+ gtk_notebook_next_page (notebook);
+ else if (event->delta_y < 0)
+ gtk_notebook_prev_page (notebook);
+ break;
+ case GTK_POS_TOP:
+ case GTK_POS_BOTTOM:
+ if (event->delta_x > 0)
+ gtk_notebook_next_page (notebook);
+ else if (event->delta_x < 0)
+ gtk_notebook_prev_page (notebook);
+ break;
+ }
+ break;
}
return TRUE;