aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/DefaultValue.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2007-12-27 04:42:10 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2007-12-27 04:42:10 (GMT)
commit1f5cd12facc662de240b36bf3c5c14f40adf391b (patch)
treed468908abf2e988265b0c2295dbd265d82ef89b6 /src/FbTk/DefaultValue.hh
parentf5024351e79e92d551d561e9756f0869e51af505 (diff)
downloadfluxbox_pavel-1f5cd12facc662de240b36bf3c5c14f40adf391b.zip
fluxbox_pavel-1f5cd12facc662de240b36bf3c5c14f40adf391b.tar.bz2
simplify the window transparency menu and handling a bit
Diffstat (limited to 'src/FbTk/DefaultValue.hh')
-rw-r--r--src/FbTk/DefaultValue.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/DefaultValue.hh b/src/FbTk/DefaultValue.hh
index 9f52212..4e7eb49 100644
--- a/src/FbTk/DefaultValue.hh
+++ b/src/FbTk/DefaultValue.hh
@@ -34,7 +34,7 @@ public:
34 inline const T &get() const { return m_use_default ? m_default : m_actual; } 34 inline const T &get() const { return m_use_default ? m_default : m_actual; }
35 inline void set(const T &val) { m_use_default = false; m_actual = val; } 35 inline void set(const T &val) { m_use_default = false; m_actual = val; }
36 inline void restoreDefault() { m_use_default = true; } 36 inline void restoreDefault() { m_use_default = true; }
37 inline void isDefault() const { return m_use_default; } 37 inline bool isDefault() const { return m_use_default; }
38 38
39 inline DefaultValue<T> &operator =(const T &val) { 39 inline DefaultValue<T> &operator =(const T &val) {
40 set(val); return *this; 40 set(val); return *this;
@@ -62,7 +62,7 @@ public:
62 } 62 }
63 inline void set(const T &val) { m_use_default = false; m_actual = val; } 63 inline void set(const T &val) { m_use_default = false; m_actual = val; }
64 inline void restoreDefault() { m_use_default = true; } 64 inline void restoreDefault() { m_use_default = true; }
65 inline void isDefault() const { return m_use_default; } 65 inline bool isDefault() const { return m_use_default; }
66 66
67 inline DefaultAccessor<T, Receiver> &operator =(const T &val) { 67 inline DefaultAccessor<T, Receiver> &operator =(const T &val) {
68 set(val); return *this; 68 set(val); return *this;