From b931a8f99fc07cf860819507e18546bb9583a2f1 Mon Sep 17 00:00:00 2001 From: Laurent Napias Date: Wed, 26 Jun 2019 22:51:52 +0200 Subject: Add scroll tabs with mouse wheel in severals capplets --- capplets/windows/mate-window-properties.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'capplets/windows/mate-window-properties.c') diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c index 3d27b35e..70cd671c 100644 --- a/capplets/windows/mate-window-properties.c +++ b/capplets/windows/mate-window-properties.c @@ -355,12 +355,23 @@ main (int argc, char **argv) "gtk-close", GTK_RESPONSE_CLOSE, NULL); + //gtk_window_set_resizable (GTK_WINDOW (dialog_win), FALSE); gtk_window_set_icon_name (GTK_WINDOW (dialog_win), "preferences-system-windows"); gtk_container_set_border_width (GTK_CONTAINER (dialog_win), 10); nb = gtk_notebook_new (); + gtk_widget_add_events (GTK_WIDGET (nb), GDK_SCROLL_MASK); + g_signal_connect (GTK_WIDGET (nb), "scroll-event", + G_CALLBACK (capplet_dialog_page_scroll_event_cb), + GTK_WINDOW (widget)); + + gtk_widget_add_events (GTK_WIDGET (nb), GDK_SCROLL_MASK); + g_signal_connect (GTK_WIDGET (nb), "scroll-event", + G_CALLBACK (capplet_dialog_page_scroll_event_cb), + GTK_WINDOW (dialog_win)); + general_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); behaviour_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); placement_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); -- cgit v1.2.1