summaryrefslogtreecommitdiff
path: root/pluma/pluma-notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-notebook.c')
-rw-r--r--pluma/pluma-notebook.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c
index 7fc7485a..f0a36d76 100644
--- a/pluma/pluma-notebook.c
+++ b/pluma/pluma-notebook.c
@@ -838,6 +838,16 @@ close_button_clicked_cb (PlumaTabLabel *tab_label, PlumaNotebook *notebook)
g_signal_emit (notebook, signals[TAB_CLOSE_REQUEST], 0, tab);
}
+static gboolean
+tab_label_scroll_cb (PlumaTabLabel *tab_label,
+ GdkEventScroll *event,
+ PlumaNotebook *notebook)
+{
+ g_signal_emit_by_name (notebook, "scroll-event", &event);
+
+ return FALSE;
+}
+
static GtkWidget *
create_tab_label (PlumaNotebook *nb,
PlumaTab *tab)
@@ -850,6 +860,10 @@ create_tab_label (PlumaNotebook *nb,
"close-clicked",
G_CALLBACK (close_button_clicked_cb),
nb);
+ g_signal_connect (tab_label,
+ "scroll-event",
+ G_CALLBACK (tab_label_scroll_cb),
+ nb);
g_object_set_data (G_OBJECT (tab), "tab-label", tab_label);