diff options
author | Laurent Napias <[email protected]> | 2019-06-26 22:51:52 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-07-02 11:07:04 +0200 |
commit | b931a8f99fc07cf860819507e18546bb9583a2f1 (patch) | |
tree | 3e0dfaa5be7b0e9f63f34bc147df4a688493f3c6 /capplets/windows | |
parent | 566addef611bfab08379e29a16379e6a12642db7 (diff) | |
download | mate-control-center-b931a8f99fc07cf860819507e18546bb9583a2f1.tar.bz2 mate-control-center-b931a8f99fc07cf860819507e18546bb9583a2f1.tar.xz |
Add scroll tabs with mouse wheel in severals capplets
Diffstat (limited to 'capplets/windows')
-rw-r--r-- | capplets/windows/mate-window-properties.c | 11 |
1 files changed, 11 insertions, 0 deletions
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); |