Commit 8f61229b authored by Andre Miranda's avatar Andre Miranda

pager: Add scroll mode WNCK_PAGER_SCROLL_NONE

This allows disabling scrolling altogether.
parent 2d2c9aa3
Pipeline #258869 passed with stage
in 1 minute and 58 seconds
......@@ -2042,6 +2042,8 @@ wnck_pager_scroll_event (GtkWidget *widget,
return FALSE;
if (event->direction == GDK_SCROLL_SMOOTH)
return FALSE;
if (pager->priv->scroll_mode == WNCK_PAGER_SCROLL_NONE)
return FALSE;
absolute_direction = event->direction;
......
......@@ -88,6 +88,7 @@ typedef enum {
* @WNCK_PAGER_SCROLL_1D: the #WnckPager will always cycle workspaces in a linear
* manner, irrespective of how many rows are configured. (Hint: Better for mice)
* Example cycling order with 2 rows and 4 workspaces: 1 2 3 4.
* @WNCK_PAGER_SCROLL_NONE: the #WnckPager will not cycle workspaces. Since 3.40.
*
* Mode defining in which order scrolling on a #WnckPager will cycle through workspaces.
*
......@@ -95,7 +96,8 @@ typedef enum {
*/
typedef enum {
WNCK_PAGER_SCROLL_2D,
WNCK_PAGER_SCROLL_1D
WNCK_PAGER_SCROLL_1D,
WNCK_PAGER_SCROLL_NONE
} WnckPagerScrollMode;
GType wnck_pager_get_type (void) G_GNUC_CONST;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment