summaryrefslogtreecommitdiff
path: root/capplets/windows/mate-window-properties.c
diff options
context:
space:
mode:
authortamplan <[email protected]>2020-05-23 11:20:51 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-05-26 22:03:15 +0200
commit91a9af4e2f57e52573579168180d5694dbb76ab2 (patch)
tree21a52aa84a08523fb358ce25942b857209a752ed /capplets/windows/mate-window-properties.c
parent6b0fd11cf82b68ad177883deef722e078d851fc4 (diff)
downloadmate-control-center-91a9af4e2f57e52573579168180d5694dbb76ab2.tar.bz2
mate-control-center-91a9af4e2f57e52573579168180d5694dbb76ab2.tar.xz
Add tab scrolling support for GTK3
mate-window-properties and mate-appearance-properties
Diffstat (limited to 'capplets/windows/mate-window-properties.c')
-rw-r--r--capplets/windows/mate-window-properties.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c
index a4513089..90e0b785 100644
--- a/capplets/windows/mate-window-properties.c
+++ b/capplets/windows/mate-window-properties.c
@@ -298,6 +298,7 @@ main (int argc, char **argv)
GError *error = NULL;
GtkBuilder *builder;
GdkScreen *screen;
+ GtkWidget *nb;
gchar *str;
const char *current_wm;
int i;
@@ -342,6 +343,13 @@ main (int argc, char **argv)
/* Window */
dialog_win = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_win"));
+ /* Notebook */
+ nb = GTK_WIDGET (gtk_builder_get_object (builder, "nb"));
+ gtk_widget_add_events (nb, GDK_SCROLL_MASK);
+ g_signal_connect (nb, "scroll-event",
+ G_CALLBACK (capplet_dialog_page_scroll_event_cb),
+ GTK_WINDOW (dialog_win));
+
/* Compositing manager */
compositing_checkbutton = GTK_WIDGET (gtk_builder_get_object (builder, "compositing_checkbutton"));
compositing_fast_alt_tab_checkbutton = GTK_WIDGET (gtk_builder_get_object (builder, "compositing_fast_alt_tab_checkbutton"));