diff options
author | fluxgen <fluxgen> | 2002-09-10 10:50:04 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-09-10 10:50:04 (GMT) |
commit | 92fbd4b4c5404c0d8c62e9778327f8ddde78052d (patch) | |
tree | fcc3fc96adfcc2c97c4a5a56afa9302777f173ff /src | |
parent | a7dc6a68c91bafbc59e2239ef89e546831febcfd (diff) | |
download | fluxbox_pavel-92fbd4b4c5404c0d8c62e9778327f8ddde78052d.zip fluxbox_pavel-92fbd4b4c5404c0d8c62e9778327f8ddde78052d.tar.bz2 |
raise and lower functions
Diffstat (limited to 'src')
-rw-r--r-- | src/Basemenu.cc | 13 | ||||
-rw-r--r-- | src/Basemenu.hh | 4 |
2 files changed, 13 insertions, 4 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc index 2f7de99..1d1abc2 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Basemenu.cc,v 1.29 2002/09/09 10:01:41 fluxgen Exp $ | 25 | // $Id: Basemenu.cc,v 1.30 2002/09/10 10:50:04 fluxgen Exp $ |
26 | 26 | ||
27 | //use GNU extensions | 27 | //use GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -160,7 +160,7 @@ m_alignment(ALIGNDONTCARE) { | |||
160 | } | 160 | } |
161 | 161 | ||
162 | 162 | ||
163 | Basemenu::~Basemenu(void) { | 163 | Basemenu::~Basemenu() { |
164 | XUnmapWindow(m_display, menu.window); | 164 | XUnmapWindow(m_display, menu.window); |
165 | 165 | ||
166 | if (shown && shown->windowID() == windowID()) | 166 | if (shown && shown->windowID() == windowID()) |
@@ -254,8 +254,15 @@ int Basemenu::remove(unsigned int index) { | |||
254 | return menuitems.size(); | 254 | return menuitems.size(); |
255 | } | 255 | } |
256 | 256 | ||
257 | void Basemenu::raise() { | ||
258 | XRaiseWindow(BaseDisplay::getXDisplay(), windowID()); | ||
259 | } | ||
260 | |||
261 | void Basemenu::lower() { | ||
262 | XLowerWindow(BaseDisplay::getXDisplay(), windowID()); | ||
263 | } | ||
257 | 264 | ||
258 | void Basemenu::update(void) { | 265 | void Basemenu::update() { |
259 | I18n *i18n = I18n::instance(); | 266 | I18n *i18n = I18n::instance(); |
260 | 267 | ||
261 | if (i18n->multibyte()) { | 268 | if (i18n->multibyte()) { |
diff --git a/src/Basemenu.hh b/src/Basemenu.hh index 29bb3ac..9e87ef4 100644 --- a/src/Basemenu.hh +++ b/src/Basemenu.hh | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Basemenu.hh,v 1.16 2002/08/04 15:55:13 fluxgen Exp $ | 25 | // $Id: Basemenu.hh,v 1.17 2002/09/10 10:48:44 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef BASEMENU_HH | 27 | #ifndef BASEMENU_HH |
28 | #define BASEMENU_HH | 28 | #define BASEMENU_HH |
@@ -63,6 +63,8 @@ public: | |||
63 | inline void setAlignment(Alignment a) { m_alignment = a; } | 63 | inline void setAlignment(Alignment a) { m_alignment = a; } |
64 | inline void setTorn() { torn = true; } | 64 | inline void setTorn() { torn = true; } |
65 | inline void removeParent() { if (internal_menu) m_parent = 0; } | 65 | inline void removeParent() { if (internal_menu) m_parent = 0; } |
66 | void raise(); | ||
67 | void lower(); | ||
66 | /** | 68 | /** |
67 | @name event handlers | 69 | @name event handlers |
68 | */ | 70 | */ |