aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrameTheme.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-27 17:52:08 (GMT)
committerfluxgen <fluxgen>2003-08-27 17:52:08 (GMT)
commit1c3ddb390bf8abd95fe26e5b32eac17b02453461 (patch)
tree4f176bb13046d9cb18d9c9a79c122c20e150b320 /src/FbWinFrameTheme.hh
parent3d5ef23a97e33a2ca9a9c24a0276a4773a6a6ea2 (diff)
downloadfluxbox_pavel-1c3ddb390bf8abd95fe26e5b32eac17b02453461.zip
fluxbox_pavel-1c3ddb390bf8abd95fe26e5b32eac17b02453461.tar.bz2
using GContext
Diffstat (limited to 'src/FbWinFrameTheme.hh')
-rw-r--r--src/FbWinFrameTheme.hh16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/FbWinFrameTheme.hh b/src/FbWinFrameTheme.hh
index cecf781..ef61f1a 100644
--- a/src/FbWinFrameTheme.hh
+++ b/src/FbWinFrameTheme.hh
@@ -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: FbWinFrameTheme.hh,v 1.9 2003/08/25 16:37:50 fluxgen Exp $ 22// $Id: FbWinFrameTheme.hh,v 1.10 2003/08/27 17:52:08 fluxgen Exp $
23 23
24#ifndef FBWINFRAMETHEME_HH 24#ifndef FBWINFRAMETHEME_HH
25#define FBWINFRAMETHEME_HH 25#define FBWINFRAMETHEME_HH
@@ -30,6 +30,8 @@
30#include "FbTk/Color.hh" 30#include "FbTk/Color.hh"
31#include "FbTk/Theme.hh" 31#include "FbTk/Theme.hh"
32#include "FbTk/Subject.hh" 32#include "FbTk/Subject.hh"
33#include "FbTk/GContext.hh"
34
33#include "BorderTheme.hh" 35#include "BorderTheme.hh"
34#include "Shape.hh" 36#include "Shape.hh"
35 37
@@ -74,10 +76,10 @@ public:
74 76
75 FbTk::Justify justify() const { return *m_textjustify; } 77 FbTk::Justify justify() const { return *m_textjustify; }
76 78
77 GC labelTextFocusGC() const { return m_label_text_focus_gc; } 79 GC labelTextFocusGC() const { return m_label_text_focus_gc.gc(); }
78 GC labelTextUnfocusGC() const { return m_label_text_unfocus_gc; } 80 GC labelTextUnfocusGC() const { return m_label_text_unfocus_gc.gc(); }
79 GC buttonPicFocusGC() const { return m_button_pic_focus_gc; } 81 GC buttonPicFocusGC() const { return m_button_pic_focus_gc.gc(); }
80 GC buttonPicUnfocusGC() const { return m_button_pic_unfocus_gc; } 82 GC buttonPicUnfocusGC() const { return m_button_pic_unfocus_gc.gc(); }
81 83
82 bool fallback(FbTk::ThemeItem_base &item); 84 bool fallback(FbTk::ThemeItem_base &item);
83 void reconfigTheme(); 85 void reconfigTheme();
@@ -112,8 +114,8 @@ private:
112 FbTk::ThemeItem<int> m_alpha, m_title_height; 114 FbTk::ThemeItem<int> m_alpha, m_title_height;
113 BorderTheme m_border; 115 BorderTheme m_border;
114 116
115 GC m_label_text_focus_gc, m_label_text_unfocus_gc; 117 FbTk::GContext m_label_text_focus_gc, m_label_text_unfocus_gc;
116 GC m_button_pic_focus_gc, m_button_pic_unfocus_gc; 118 FbTk::GContext m_button_pic_focus_gc, m_button_pic_unfocus_gc;
117 119
118 FbTk::Subject m_theme_change; 120 FbTk::Subject m_theme_change;
119 121