summaryrefslogtreecommitdiff
path: root/src/gui/gtk/gui-gtk-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gtk/gui-gtk-window.c')
-rw-r--r--src/gui/gtk/gui-gtk-window.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/gui/gtk/gui-gtk-window.c b/src/gui/gtk/gui-gtk-window.c
index 58b500c89..b47be0577 100644
--- a/src/gui/gtk/gui-gtk-window.c
+++ b/src/gui/gtk/gui-gtk-window.c
@@ -372,6 +372,37 @@ gui_window_scroll_bottom (t_gui_window *window)
}
/*
+ * gui_window_scroll_topic_left: scroll left topic
+ */
+
+void
+gui_window_scroll_topic_left (t_gui_window *window)
+{
+ if (!gui_ok)
+ return;
+
+ if (window->win_title_start > 0)
+ window->win_title_start -= (window->win_width * 3) / 4;
+ if (window->win_title_start < 0)
+ window->win_title_start = 0;
+ gui_chat_draw_title (window->buffer, 1);
+}
+
+/*
+ * gui_window_scroll_topic_right: scroll right topic
+ */
+
+void
+gui_window_scroll_topic_right (t_gui_window *window)
+{
+ if (!gui_ok)
+ return;
+
+ window->win_title_start += (window->win_width * 3) / 4;
+ gui_chat_draw_title (window->buffer, 1);
+}
+
+/*
* gui_window_nick_beginning: go to beginning of nicklist
*/