diff options
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r-- | src/FbTk/Menu.cc | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc index b79f1b6..5cfb1d1 100644 --- a/src/FbTk/Menu.cc +++ b/src/FbTk/Menu.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: Menu.cc,v 1.83 2004/09/11 15:52:23 rathnor Exp $ | 25 | // $Id: Menu.cc,v 1.84 2004/09/11 22:59:15 fluxgen Exp $ |
26 | 26 | ||
27 | //use GNU extensions | 27 | //use GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -312,7 +312,7 @@ void Menu::nextItem() { | |||
312 | drawItem(which_press, | 312 | drawItem(which_press, |
313 | true, // clear | 313 | true, // clear |
314 | true); // transp | 314 | true); // transp |
315 | 315 | ||
316 | } | 316 | } |
317 | 317 | ||
318 | void Menu::prevItem() { | 318 | void Menu::prevItem() { |
@@ -774,7 +774,7 @@ void Menu::redrawTitle() { | |||
774 | // difference between height based on font, and style-set height | 774 | // difference between height based on font, and style-set height |
775 | int height_offset = theme().titleHeight() - (font.height() + 2*theme().bevelWidth()); | 775 | int height_offset = theme().titleHeight() - (font.height() + 2*theme().bevelWidth()); |
776 | menu.title.updateTransparent(); | 776 | menu.title.updateTransparent(); |
777 | font.drawText(m_real_title_pm.drawable(), // drawable | 777 | font.drawText(m_real_title_pm, // drawable |
778 | screenNumber(), | 778 | screenNumber(), |
779 | theme().titleTextGC().gc(), // graphic context | 779 | theme().titleTextGC().gc(), // graphic context |
780 | text, len, // text string with length | 780 | text, len, // text string with length |
@@ -1144,21 +1144,13 @@ void Menu::buttonReleaseEvent(XButtonEvent &re) { | |||
1144 | re.y > iy && re.y < (signed) (iy + theme().itemHeight())) { | 1144 | re.y > iy && re.y < (signed) (iy + theme().itemHeight())) { |
1145 | menuitems[w]->click(re.button, re.time); | 1145 | menuitems[w]->click(re.button, re.time); |
1146 | itemSelected(re.button, w); | 1146 | itemSelected(re.button, w); |
1147 | drawItem(w, | ||
1148 | true, // clear | ||
1149 | true); // transparent | ||
1150 | } | 1147 | } |
1151 | |||
1152 | } else { | ||
1153 | drawItem(p, | ||
1154 | true, // clear | ||
1155 | true); // transparent | ||
1156 | } | 1148 | } |
1157 | } else { | ||
1158 | drawItem(p, | ||
1159 | true, // clear | ||
1160 | true); // transparent | ||
1161 | } | 1149 | } |
1150 | |||
1151 | drawItem(p, | ||
1152 | true, // clear | ||
1153 | true); // transparent | ||
1162 | } | 1154 | } |
1163 | } | 1155 | } |
1164 | 1156 | ||