Thanks for this, however, you forgot the close button, where scrolling suddenly
stops. Fix:
~~~
@@ -745,10 +745,12 @@ gint notebook_new_tab(GeanyDocument *this)
align = gtk_alignment_new(1.0, 0.5, 0.0, 0.0);
gtk_container_add(GTK_CONTAINER(align), btn);
gtk_box_pack_start(GTK_BOX(hbox), align, TRUE, TRUE, 0);
+ gtk_widget_add_events(btn, GDK_SCROLL_MASK);
+
g_signal_connect(btn, "clicked",
G_CALLBACK(notebook_tab_close_clicked_cb), this);
/* button overrides event box, so make middle click on button
also close tab */
g_signal_connect(btn, "button-press-event",
G_CALLBACK(notebook_tab_click), this);
/* handle style modification to keep button small as possible
even when theme change */
g_signal_connect(btn, "style-set",
G_CALLBACK(notebook_tab_close_button_style_set), NULL);
~~~
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3134#issuecomment-1370740391
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3134/[email protected]>