summaryrefslogtreecommitdiff
path: root/capplets/network
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-26 22:51:52 +0200
committerraveit65 <[email protected]>2019-07-02 11:07:04 +0200
commitb931a8f99fc07cf860819507e18546bb9583a2f1 (patch)
tree3e0dfaa5be7b0e9f63f34bc147df4a688493f3c6 /capplets/network
parent566addef611bfab08379e29a16379e6a12642db7 (diff)
downloadmate-control-center-b931a8f99fc07cf860819507e18546bb9583a2f1.tar.bz2
mate-control-center-b931a8f99fc07cf860819507e18546bb9583a2f1.tar.xz
Add scroll tabs with mouse wheel in severals capplets
Diffstat (limited to 'capplets/network')
-rw-r--r--capplets/network/mate-network-properties.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/capplets/network/mate-network-properties.c b/capplets/network/mate-network-properties.c
index af17495b..8400e822 100644
--- a/capplets/network/mate-network-properties.c
+++ b/capplets/network/mate-network-properties.c
@@ -479,6 +479,13 @@ main (int argc, char **argv)
setup_dialog (builder);
widget = _gtk_builder_get_widget (builder, "network_dialog");
+
+ GtkNotebook* nb = GTK_NOTEBOOK (_gtk_builder_get_widget (builder, "notebook1"));
+ 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));
+
capplet_set_icon (widget, "network-server");
gtk_widget_show_all (widget);
gtk_main ();