[gnome-terminal/gsettings] window: Use correct scroll direction
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gsettings] window: Use correct scroll direction
- Date: Wed, 14 Mar 2012 21:00:59 +0000 (UTC)
commit 726bcdbc05bdff7bd37588040ee146483df2e31a
Author: Christian Persch <chpe gnome org>
Date: Wed Mar 14 22:00:01 2012 +0100
window: Use correct scroll direction
Fix thinko in last commit.
src/terminal-window.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 2e8028d..8093fed 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -2775,16 +2775,16 @@ notebook_scroll_event_cb (GtkWidget *widget,
switch (gtk_notebook_get_tab_pos (notebook)) {
case GTK_POS_LEFT:
case GTK_POS_RIGHT:
- if (event->delta_x > 0)
+ if (event->delta_y > 0)
gtk_notebook_next_page (notebook);
- else if (event->delta_x < 0)
+ else if (event->delta_y < 0)
gtk_notebook_prev_page (notebook);
break;
case GTK_POS_TOP:
case GTK_POS_BOTTOM:
- if (event->delta_y > 0)
+ if (event->delta_x > 0)
gtk_notebook_next_page (notebook);
- else if (event->delta_y < 0)
+ else if (event->delta_x < 0)
gtk_notebook_prev_page (notebook);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]