aboutsummaryrefslogtreecommitdiff
path: root/src/CommandDialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommandDialog.cc')
-rw-r--r--src/CommandDialog.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/CommandDialog.cc b/src/CommandDialog.cc
index fb184e7..d88d755 100644
--- a/src/CommandDialog.cc
+++ b/src/CommandDialog.cc
@@ -50,8 +50,8 @@ using std::out_of_range;
50CommandDialog::CommandDialog(BScreen &screen, 50CommandDialog::CommandDialog(BScreen &screen,
51 const string &title, const string precommand) : 51 const string &title, const string precommand) :
52 FbTk::FbWindow(screen.rootWindow().screenNumber(), 0, 0, 200, 1, ExposureMask), 52 FbTk::FbWindow(screen.rootWindow().screenNumber(), 0, 0, 200, 1, ExposureMask),
53 m_textbox(*this, screen.winFrameTheme().font(), ""), 53 m_textbox(*this, screen.winFrameTheme()->font(), ""),
54 m_label(*this, screen.winFrameTheme().font(), title), 54 m_label(*this, screen.winFrameTheme()->font(), title),
55 m_gc(m_textbox), 55 m_gc(m_textbox),
56 m_screen(screen), 56 m_screen(screen),
57 m_move_x(0), 57 m_move_x(0),
@@ -190,12 +190,12 @@ void CommandDialog::tabComplete() {
190 190
191void CommandDialog::render() { 191void CommandDialog::render() {
192 Pixmap tmp = m_pixmap; 192 Pixmap tmp = m_pixmap;
193 if (!m_screen.winFrameTheme().iconbarTheme().focusedTexture().usePixmap()) { 193 if (!m_screen.winFrameTheme()->iconbarTheme().focusedTexture().usePixmap()) {
194 m_label.setBackgroundColor(m_screen.winFrameTheme().iconbarTheme().focusedTexture().color()); 194 m_label.setBackgroundColor(m_screen.winFrameTheme()->iconbarTheme().focusedTexture().color());
195 m_pixmap = 0; 195 m_pixmap = 0;
196 } else { 196 } else {
197 m_pixmap = m_screen.imageControl().renderImage(m_label.width(), m_label.height(), 197 m_pixmap = m_screen.imageControl().renderImage(m_label.width(), m_label.height(),
198 m_screen.winFrameTheme().iconbarTheme().focusedTexture()); 198 m_screen.winFrameTheme()->iconbarTheme().focusedTexture());
199 m_label.setBackgroundPixmap(m_pixmap); 199 m_label.setBackgroundPixmap(m_pixmap);
200 } 200 }
201 201
@@ -210,7 +210,7 @@ void CommandDialog::init() {
210 // setup label 210 // setup label
211 // we listen to motion notify too 211 // we listen to motion notify too
212 m_label.setEventMask(m_label.eventMask() | ButtonPressMask | ButtonMotionMask); 212 m_label.setEventMask(m_label.eventMask() | ButtonPressMask | ButtonMotionMask);
213 m_label.setGC(m_screen.winFrameTheme().iconbarTheme().focusedText().textGC()); 213 m_label.setGC(m_screen.winFrameTheme()->iconbarTheme().focusedText().textGC());
214 m_label.show(); 214 m_label.show();
215 215
216 // setup text box 216 // setup text box