diff -Naur xfce4-panel-4.16.1-orig/plugins/pager/pager.c xfce4-panel-4.16.1/plugins/pager/pager.c --- xfce4-panel-4.16.1-orig/plugins/pager/pager.c 2021-01-31 22:04:20.023870874 +0100 +++ xfce4-panel-4.16.1/plugins/pager/pager.c 2021-01-31 22:18:17.964139544 +0100 @@ -107,7 +107,7 @@ GtkWidget *pager; GObject *numbering_toggle; GObject *scrolling_toggle; - GObject *invert_scrolling_toggle; + GObject *scroll_options_box; WnckScreen *wnck_screen; @@ -837,13 +837,23 @@ G_OBJECT (plugin->scrolling_toggle), "active", G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL); - plugin->invert_scrolling_toggle = gtk_builder_get_object (builder, "workspace-invert-scrolling"); - panel_return_if_fail (GTK_IS_TOGGLE_BUTTON (plugin->invert_scrolling_toggle)); + plugin->scroll_options_box = gtk_builder_get_object (builder, "scroll-options"); + panel_return_if_fail (GTK_IS_BOX (plugin->scroll_options_box)); g_object_bind_property (G_OBJECT (plugin), "workspace-scrolling", - G_OBJECT (plugin->invert_scrolling_toggle), "sensitive", + G_OBJECT (plugin->scroll_options_box), "sensitive", G_BINDING_SYNC_CREATE | G_BINDING_DEFAULT); + + + object = gtk_builder_get_object (builder, "workspace-invert-scrolling"); + panel_return_if_fail (GTK_IS_TOGGLE_BUTTON (object)); g_object_bind_property (G_OBJECT (plugin), "workspace-invert-scrolling", - G_OBJECT (plugin->invert_scrolling_toggle), "active", + G_OBJECT (object), "active", + G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL); + + object = gtk_builder_get_object (builder, "wrap-workspaces"); + panel_return_if_fail (GTK_IS_TOGGLE_BUTTON (object)); + g_object_bind_property (G_OBJECT (plugin), "wrap-workspaces", + G_OBJECT (object), "active", G_BINDING_SYNC_CREATE | G_BINDING_BIDIRECTIONAL); /* update the rows limit */ diff -Naur xfce4-panel-4.16.1-orig/plugins/pager/pager-dialog.glade xfce4-panel-4.16.1/plugins/pager/pager-dialog.glade --- xfce4-panel-4.16.1-orig/plugins/pager/pager-dialog.glade 2021-01-31 22:04:20.023870874 +0100 +++ xfce4-panel-4.16.1/plugins/pager/pager-dialog.glade 2021-01-31 22:18:31.664209323 +0100 @@ -24,7 +24,7 @@ True False - org.xfce.workspaces + xfce4-workspaces True @@ -298,17 +298,54 @@ - + - - _Invert mouse wheel workspace switching direction - Invert the direction in which the workspaces are switched + True - True - 24 - False - True - True + False + 6 + vertical + + + + + _Invert mouse wheel workspace switching direction + Invert the direction in which the workspaces are switched + True + True + 24 + False + True + True + + + False + True + 0 + + + + + + + Wrap workspaces + When scrolling beyond the last/first workspace, wrap around to the first/last workspace + True + True + True + 24 + False + True + True + + + False + True + 1 + + + + False