diff options
author | rathnor <rathnor> | 2003-03-03 21:51:13 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-03-03 21:51:13 (GMT) |
commit | 19875e5a5ba474387971ede597cdc4aa7454d4c0 (patch) | |
tree | 99d672abcffa86d74734deacbd888eccde02ffd2 /src/Gnome.cc | |
parent | 824fd0db7a4b8117fecba9bb46053bdd38691803 (diff) | |
download | fluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.zip fluxbox_pavel-19875e5a5ba474387971ede597cdc4aa7454d4c0.tar.bz2 |
Add code for toolbar modes
Diffstat (limited to 'src/Gnome.cc')
-rw-r--r-- | src/Gnome.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Gnome.cc b/src/Gnome.cc index 54e7d45..c8d4a70 100644 --- a/src/Gnome.cc +++ b/src/Gnome.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Gnome.cc,v 1.11 2003/02/18 15:11:07 rathnor Exp $ | 22 | // $Id: Gnome.cc,v 1.12 2003/03/03 21:51:01 rathnor Exp $ |
23 | 23 | ||
24 | #include "Gnome.hh" | 24 | #include "Gnome.hh" |
25 | 25 | ||
@@ -43,7 +43,7 @@ Gnome::~Gnome() { | |||
43 | } | 43 | } |
44 | } | 44 | } |
45 | 45 | ||
46 | void Gnome::initForScreen(const BScreen &screen) { | 46 | void Gnome::initForScreen(BScreen &screen) { |
47 | Display *disp = BaseDisplay::getXDisplay(); | 47 | Display *disp = BaseDisplay::getXDisplay(); |
48 | // create the GNOME window | 48 | // create the GNOME window |
49 | Window gnome_win = XCreateSimpleWindow(disp, | 49 | Window gnome_win = XCreateSimpleWindow(disp, |
@@ -120,7 +120,7 @@ void Gnome::setupWindow(FluxboxWindow &win) { | |||
120 | 120 | ||
121 | } | 121 | } |
122 | 122 | ||
123 | void Gnome::updateClientList(const BScreen &screen) { | 123 | void Gnome::updateClientList(BScreen &screen) { |
124 | size_t num=0; | 124 | size_t num=0; |
125 | 125 | ||
126 | BScreen::Workspaces::const_iterator workspace_it = screen.getWorkspacesList().begin(); | 126 | BScreen::Workspaces::const_iterator workspace_it = screen.getWorkspacesList().begin(); |
@@ -162,7 +162,7 @@ void Gnome::updateClientList(const BScreen &screen) { | |||
162 | delete wl; | 162 | delete wl; |
163 | } | 163 | } |
164 | 164 | ||
165 | void Gnome::updateWorkspaceNames(const BScreen &screen) { | 165 | void Gnome::updateWorkspaceNames(BScreen &screen) { |
166 | XTextProperty text; | 166 | XTextProperty text; |
167 | int number_of_desks = screen.getWorkspaceNames().size(); | 167 | int number_of_desks = screen.getWorkspaceNames().size(); |
168 | 168 | ||
@@ -185,7 +185,7 @@ void Gnome::updateWorkspaceNames(const BScreen &screen) { | |||
185 | delete [] names[i]; | 185 | delete [] names[i]; |
186 | } | 186 | } |
187 | 187 | ||
188 | void Gnome::updateCurrentWorkspace(const BScreen &screen) { | 188 | void Gnome::updateCurrentWorkspace(BScreen &screen) { |
189 | int workspace = screen.getCurrentWorkspaceID(); | 189 | int workspace = screen.getCurrentWorkspaceID(); |
190 | XChangeProperty(BaseDisplay::getXDisplay(), | 190 | XChangeProperty(BaseDisplay::getXDisplay(), |
191 | screen.getRootWindow(), | 191 | screen.getRootWindow(), |
@@ -195,7 +195,7 @@ void Gnome::updateCurrentWorkspace(const BScreen &screen) { | |||
195 | updateClientList(screen); // make sure the client list is updated too | 195 | updateClientList(screen); // make sure the client list is updated too |
196 | } | 196 | } |
197 | 197 | ||
198 | void Gnome::updateWorkspaceCount(const BScreen &screen) { | 198 | void Gnome::updateWorkspaceCount(BScreen &screen) { |
199 | int numworkspaces = screen.getCount(); | 199 | int numworkspaces = screen.getCount(); |
200 | XChangeProperty(BaseDisplay::getXDisplay(), screen.getRootWindow(), | 200 | XChangeProperty(BaseDisplay::getXDisplay(), screen.getRootWindow(), |
201 | m_gnome_wm_win_workspace_count, XA_CARDINAL, 32, PropModeReplace, | 201 | m_gnome_wm_win_workspace_count, XA_CARDINAL, 32, PropModeReplace, |
@@ -242,7 +242,7 @@ void Gnome::updateHints(FluxboxWindow &win) { | |||
242 | 242 | ||
243 | } | 243 | } |
244 | 244 | ||
245 | bool Gnome::checkClientMessage(const XClientMessageEvent &ce, BScreen * const screen, FluxboxWindow * const win) { | 245 | bool Gnome::checkClientMessage(const XClientMessageEvent &ce, BScreen * screen, FluxboxWindow * const win) { |
246 | if (ce.message_type == m_gnome_wm_win_workspace) { | 246 | if (ce.message_type == m_gnome_wm_win_workspace) { |
247 | #ifdef DEBUG | 247 | #ifdef DEBUG |
248 | cerr<<__FILE__<<"("<<__LINE__<<"): Got workspace atom="<<ce.data.l[0]<<endl; | 248 | cerr<<__FILE__<<"("<<__LINE__<<"): Got workspace atom="<<ce.data.l[0]<<endl; |