diff options
author | rathnor <rathnor> | 2002-12-01 13:42:15 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2002-12-01 13:42:15 (GMT) |
commit | 28b5c604490094e187494dcc566bd3d7a05a2c25 (patch) | |
tree | 8f78f5714a5cd055c10b067a2656fe7b2338e71a /src/Workspacemenu.cc | |
parent | b9134162f9633784d9097df18769a699a62650fe (diff) | |
download | fluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.zip fluxbox-28b5c604490094e187494dcc566bd3d7a05a2c25.tar.bz2 |
Indenting from tabs to emacs 4-space
Diffstat (limited to 'src/Workspacemenu.cc')
-rw-r--r-- | src/Workspacemenu.cc | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/Workspacemenu.cc b/src/Workspacemenu.cc index 8ca7665..c39c435 100644 --- a/src/Workspacemenu.cc +++ b/src/Workspacemenu.cc | |||
@@ -21,7 +21,7 @@ | |||
21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | // DEALINGS IN THE SOFTWARE. | 22 | // DEALINGS IN THE SOFTWARE. |
23 | 23 | ||
24 | // $Id: Workspacemenu.cc,v 1.10 2002/10/25 21:15:49 fluxgen Exp $ | 24 | // $Id: Workspacemenu.cc,v 1.11 2002/12/01 13:42:06 rathnor Exp $ |
25 | 25 | ||
26 | #include "Workspacemenu.hh" | 26 | #include "Workspacemenu.hh" |
27 | 27 | ||
@@ -44,36 +44,36 @@ | |||
44 | 44 | ||
45 | Workspacemenu::Workspacemenu(BScreen *scrn) : Basemenu(scrn) { | 45 | Workspacemenu::Workspacemenu(BScreen *scrn) : Basemenu(scrn) { |
46 | 46 | ||
47 | setInternalMenu(); | 47 | setInternalMenu(); |
48 | I18n *i18n = I18n::instance(); | 48 | I18n *i18n = I18n::instance(); |
49 | using namespace FBNLS; | 49 | using namespace FBNLS; |
50 | setLabel(i18n->getMessage( | 50 | setLabel(i18n->getMessage( |
51 | WorkspacemenuSet, WorkspacemenuWorkspacesTitle, | 51 | WorkspacemenuSet, WorkspacemenuWorkspacesTitle, |
52 | "Workspaces")); | 52 | "Workspaces")); |
53 | insert(i18n->getMessage( | 53 | insert(i18n->getMessage( |
54 | WorkspacemenuSet, WorkspacemenuNewWorkspace, | 54 | WorkspacemenuSet, WorkspacemenuNewWorkspace, |
55 | "New Workspace")); | 55 | "New Workspace")); |
56 | insert(i18n->getMessage( | 56 | insert(i18n->getMessage( |
57 | WorkspacemenuSet, WorkspacemenuRemoveLast, | 57 | WorkspacemenuSet, WorkspacemenuRemoveLast, |
58 | "Remove Last")); | 58 | "Remove Last")); |
59 | } | 59 | } |
60 | 60 | ||
61 | 61 | ||
62 | void Workspacemenu::itemSelected(int button, unsigned int index) { | 62 | void Workspacemenu::itemSelected(int button, unsigned int index) { |
63 | if (button == 1) { | 63 | if (button == 1) { |
64 | if (index == 0) { | 64 | if (index == 0) { |
65 | screen()->addWorkspace(); | 65 | screen()->addWorkspace(); |
66 | Fluxbox::instance()->save_rc(); | 66 | Fluxbox::instance()->save_rc(); |
67 | } else if (index == 1) { | 67 | } else if (index == 1) { |
68 | screen()->removeLastWorkspace(); | 68 | screen()->removeLastWorkspace(); |
69 | Fluxbox::instance()->save_rc(); | 69 | Fluxbox::instance()->save_rc(); |
70 | } else if ((screen()->getCurrentWorkspace()->workspaceID() != | 70 | } else if ((screen()->getCurrentWorkspace()->workspaceID() != |
71 | (index - 2)) && ((index - 2) < screen()->getCount())) { | 71 | (index - 2)) && ((index - 2) < screen()->getCount())) { |
72 | screen()->changeWorkspaceID(index - 2); | 72 | screen()->changeWorkspaceID(index - 2); |
73 | } | 73 | } |
74 | 74 | ||
75 | if (! (screen()->getWorkspacemenu()->isTorn() || isTorn())) | 75 | if (! (screen()->getWorkspacemenu()->isTorn() || isTorn())) |
76 | hide(); | 76 | hide(); |
77 | } | 77 | } |
78 | } | 78 | } |
79 | 79 | ||