diff options
author | Moritz Bruder <muesli4@gmail.com> | 2017-03-23 22:08:36 +0100 |
---|---|---|
committer | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2017-04-26 05:20:47 +0200 |
commit | 5e4c04a671eae5bd12e0f5fb40d79b6ab64bffba (patch) | |
tree | 6ab63b0898853e2eb261aa9ea26b5dd9c616615d /libwnck/pager.h | |
parent | 7177db63ae31f8c09a8b76a18c9098d527481398 (diff) | |
download | libwnck-5e4c04a671eae5bd12e0f5fb40d79b6ab64bffba.tar.gz |
Add wrap-on-scroll option for WnckPager widget
This commit is a minor and optional enhancement of the WnckPager
widget.
It allows to scroll over the borders of workspace boundaries.
This behavior, which is disabled by default, might be enabled with
wnck_pager_set_wrap_on_scroll. When activated, a scroll event which
would otherwise do nothing, i.e. over the border, will now scroll from
the first to the last workspace and from the last to the first. With
this option disabled the behavior is exactly the same as before.
https://bugzilla.gnome.org/show_bug.cgi?id=780490
Diffstat (limited to 'libwnck/pager.h')
-rw-r--r-- | libwnck/pager.h | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/libwnck/pager.h b/libwnck/pager.h index 4ff6f01..5a43d05 100644 --- a/libwnck/pager.h +++ b/libwnck/pager.h @@ -80,20 +80,23 @@ typedef enum { WNCK_PAGER_DISPLAY_CONTENT } WnckPagerDisplayMode; -GType wnck_pager_get_type (void) G_GNUC_CONST; - -GtkWidget* wnck_pager_new (void); - -gboolean wnck_pager_set_orientation (WnckPager *pager, - GtkOrientation orientation); -gboolean wnck_pager_set_n_rows (WnckPager *pager, - int n_rows); -void wnck_pager_set_display_mode (WnckPager *pager, - WnckPagerDisplayMode mode); -void wnck_pager_set_show_all (WnckPager *pager, - gboolean show_all_workspaces); -void wnck_pager_set_shadow_type (WnckPager *pager, - GtkShadowType shadow_type); +GType wnck_pager_get_type (void) G_GNUC_CONST; + +GtkWidget* wnck_pager_new (void); + +gboolean wnck_pager_set_orientation (WnckPager *pager, + GtkOrientation orientation); +gboolean wnck_pager_set_n_rows (WnckPager *pager, + int n_rows); +void wnck_pager_set_display_mode (WnckPager *pager, + WnckPagerDisplayMode mode); +void wnck_pager_set_show_all (WnckPager *pager, + gboolean show_all_workspaces); +void wnck_pager_set_shadow_type (WnckPager *pager, + GtkShadowType shadow_type); +void wnck_pager_set_wrap_on_scroll (WnckPager *pager, + gboolean wrap_on_scroll); +gboolean wnck_pager_get_wrap_on_scroll (WnckPager *pager); G_END_DECLS |