aboutsummaryrefslogtreecommitdiff
path: root/src/WinButtonTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinButtonTheme.hh')
-rw-r--r--src/WinButtonTheme.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/WinButtonTheme.hh b/src/WinButtonTheme.hh
index 7d00e1e..5d3e3fe 100644
--- a/src/WinButtonTheme.hh
+++ b/src/WinButtonTheme.hh
@@ -30,7 +30,8 @@ class FbWinFrameTheme;
30class WinButtonTheme: public FbTk::Theme, 30class WinButtonTheme: public FbTk::Theme,
31 public FbTk::ThemeProxy<WinButtonTheme> { 31 public FbTk::ThemeProxy<WinButtonTheme> {
32public: 32public:
33 WinButtonTheme(int screen_num, FbWinFrameTheme &frame_theme); 33 WinButtonTheme(int screen_num,
34 FbTk::ThemeProxy<FbWinFrameTheme> &frame_theme);
34 ~WinButtonTheme(); 35 ~WinButtonTheme();
35 36
36 void reconfigTheme(); 37 void reconfigTheme();
@@ -88,8 +89,8 @@ public:
88 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } 89 virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); }
89 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); } 90 virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
90 91
91 virtual WinButtonTheme *operator ->() { return this; } 92 virtual WinButtonTheme &operator *() { return *this; }
92 virtual const WinButtonTheme *operator ->() const { return this; } 93 virtual const WinButtonTheme &operator *() const { return *this; }
93 94
94private: 95private:
95 96
@@ -104,7 +105,7 @@ private:
104 FbTk::ThemeItem<FbTk::PixmapWithMask> m_stick_pm, m_stick_unfocus_pm, m_stick_pressed_pm; 105 FbTk::ThemeItem<FbTk::PixmapWithMask> m_stick_pm, m_stick_unfocus_pm, m_stick_pressed_pm;
105 FbTk::ThemeItem<FbTk::PixmapWithMask> m_stuck_pm, m_stuck_unfocus_pm; 106 FbTk::ThemeItem<FbTk::PixmapWithMask> m_stuck_pm, m_stuck_unfocus_pm;
106 107
107 FbWinFrameTheme &m_frame_theme; 108 FbTk::ThemeProxy<FbWinFrameTheme> &m_frame_theme;
108}; 109};
109 110
110#endif // WINBUTTONTHEME_HH 111#endif // WINBUTTONTHEME_HH