aboutsummaryrefslogtreecommitdiff
path: root/src/Screen.hh
diff options
context:
space:
mode:
authorPavel Labath <pavelo@centrum.sk>2011-06-16 20:36:18 (GMT)
committerPavel Labath <pavelo@centrum.sk>2011-06-16 20:37:47 (GMT)
commit25e1ea47997fc8bd858400cdf89dbe32db97bbcc (patch)
tree95819011a3371d2ce93b68d9e955632b71d52018 /src/Screen.hh
parent56ca54a6f0e1c1dd806e9e93579c168b337e438c (diff)
downloadfluxbox_pavel-25e1ea47997fc8bd858400cdf89dbe32db97bbcc.zip
fluxbox_pavel-25e1ea47997fc8bd858400cdf89dbe32db97bbcc.tar.bz2
Make session.screenX.workspace_names a real FbTk::Resource
instead of the add-on hack it was. This also fixes a lot of problems with saving of config.
Diffstat (limited to 'src/Screen.hh')
-rw-r--r--src/Screen.hh11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Screen.hh b/src/Screen.hh
index e7b439c..138cd1c 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -190,7 +190,7 @@ public:
190 190
191 const Workspaces &getWorkspacesList() const { return m_workspaces_list; } 191 const Workspaces &getWorkspacesList() const { return m_workspaces_list; }
192 Workspaces &getWorkspacesList() { return m_workspaces_list; } 192 Workspaces &getWorkspacesList() { return m_workspaces_list; }
193 const WorkspaceNames &getWorkspaceNames() const { return m_workspace_names; } 193 const WorkspaceNames &getWorkspaceNames() const { return *resource.workspace_names; }
194 /** 194 /**
195 @name Screen signals 195 @name Screen signals
196 */ 196 */
@@ -321,7 +321,7 @@ public:
321 /// remove all workspace names 321 /// remove all workspace names
322 void removeWorkspaceNames(); 322 void removeWorkspaceNames();
323 /// add a workspace name to the end of the workspace name list 323 /// add a workspace name to the end of the workspace name list
324 void addWorkspaceName(const char *name); 324 void addWorkspaceName(const std::string &name);
325 /// add a window to the icon list 325 /// add a window to the icon list
326 void addIcon(FluxboxWindow *win); 326 void addIcon(FluxboxWindow *win);
327 /// remove a window from the icon list 327 /// remove a window from the icon list
@@ -493,7 +493,6 @@ private:
493 493
494 Workspace *m_current_workspace; 494 Workspace *m_current_workspace;
495 495
496 WorkspaceNames m_workspace_names;
497 Workspaces m_workspaces_list; 496 Workspaces m_workspaces_list;
498 497
499 std::auto_ptr<FbWinFrameTheme> m_focused_windowtheme, 498 std::auto_ptr<FbWinFrameTheme> m_focused_windowtheme,
@@ -511,6 +510,12 @@ private:
511 struct ScreenResource { 510 struct ScreenResource {
512 ScreenResource(FbTk::ResourceManager_base &rm, const std::string &scrname); 511 ScreenResource(FbTk::ResourceManager_base &rm, const std::string &scrname);
513 512
513 static const char workspace_names_delim[];
514 FbTk::Resource<
515 std::vector<std::string>,
516 FbTk::VectorTraits<FbTk::StringTraits, workspace_names_delim>
517 > workspace_names;
518
514 FbTk::BoolResource opaque_move, full_max, 519 FbTk::BoolResource opaque_move, full_max,
515 max_ignore_inc, max_disable_move, max_disable_resize, 520 max_ignore_inc, max_disable_move, max_disable_resize,
516 workspace_warping, show_window_pos, auto_raise, click_raises; 521 workspace_warping, show_window_pos, auto_raise, click_raises;