diff options
author | muesli4 <[email protected]> | 2013-04-03 18:59:23 +0200 |
---|---|---|
committer | muesli4 <[email protected]> | 2013-04-03 18:59:23 +0200 |
commit | d82caeefd7c34bdca153c56730d4087deb554b30 (patch) | |
tree | 68d8ff173e9a41477fa9e608e10ec6d9f75a7afa /applets/wncklet/workspace-switcher.c | |
parent | 2ad6b13122802f9408ebac6680adfc26450fa203 (diff) | |
download | mate-panel-d82caeefd7c34bdca153c56730d4087deb554b30.tar.bz2 mate-panel-d82caeefd7c34bdca153c56730d4087deb554b30.tar.xz |
Fixed a bug when the toggle button belonging to wrap_workspaces is not toggled even though the value is TRUE on preferences dialog creation.
Diffstat (limited to 'applets/wncklet/workspace-switcher.c')
-rw-r--r-- | applets/wncklet/workspace-switcher.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c index 36dfe177..89880e7a 100644 --- a/applets/wncklet/workspace-switcher.c +++ b/applets/wncklet/workspace-switcher.c @@ -839,6 +839,11 @@ static void setup_dialog(GtkBuilder* builder, PagerData* pager) /* Wrap workspaces: */ + if (pager->wrap_workspaces_toggle) + { + /* make sure the toggle button resembles the value of wrap_workspaces */ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(pager->wrap_workspaces_toggle), pager->wrap_workspaces); + } g_signal_connect(G_OBJECT(pager->wrap_workspaces_toggle), "toggled", (GCallback) wrap_workspaces_toggled, pager); |