diff options
author | likorisd <[email protected]> | 2018-02-05 19:07:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-23 15:24:58 +0100 |
commit | ed34d929a420da68b49e232a08bc3ca8f980200c (patch) | |
tree | 48d7ea80f4001af57f8311a50d455ba32e0daf6a /pluma/pluma-notebook.c | |
parent | 1d82cc7c517fd84e6428ebb7ef29583240176af9 (diff) | |
download | pluma-ed34d929a420da68b49e232a08bc3ca8f980200c.tar.bz2 pluma-ed34d929a420da68b49e232a08bc3ca8f980200c.tar.xz |
Make notebook tabs scrollable
Diffstat (limited to 'pluma/pluma-notebook.c')
-rw-r--r-- | pluma/pluma-notebook.c | 14 |
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); |