aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-11-28 22:53:10 (GMT)
committerfluxgen <fluxgen>2003-11-28 22:53:10 (GMT)
commit139792c8603a4ec6faa23576ff03d39a50d4ab91 (patch)
treed998d37381081530b06b98a150c00c275a896dc9 /src/FbTk/Menu.cc
parentf6fa2664931d7577780c22eb5a2e738f322ec360 (diff)
downloadfluxbox_pavel-139792c8603a4ec6faa23576ff03d39a50d4ab91.zip
fluxbox_pavel-139792c8603a4ec6faa23576ff03d39a50d4ab91.tar.bz2
GContext
Diffstat (limited to 'src/FbTk/Menu.cc')
-rw-r--r--src/FbTk/Menu.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 8b4ddd2..96e8fa8 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.41 2003/11/19 12:57:27 rathnor Exp $ 25// $Id: Menu.cc,v 1.42 2003/11/28 22:52:20 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -785,9 +785,9 @@ void Menu::drawItem(unsigned int index, bool highlight, bool clear, bool render_
785 } 785 }
786 786
787 GC gc = 787 GC gc =
788 ((highlight || item->isSelected()) ? m_theme.hiliteTextGC() : 788 ((highlight || item->isSelected()) ? m_theme.hiliteTextGC().gc() :
789 m_theme.frameTextGC()); 789 m_theme.frameTextGC().gc());
790 GC tgc = 790 const GContext &tgc =
791 (highlight ? m_theme.hiliteTextGC() : 791 (highlight ? m_theme.hiliteTextGC() :
792 (item->isEnabled() ? m_theme.frameTextGC() : m_theme.disableTextGC() ) ); 792 (item->isEnabled() ? m_theme.frameTextGC() : m_theme.disableTextGC() ) );
793 793
@@ -842,11 +842,11 @@ void Menu::drawItem(unsigned int index, bool highlight, bool clear, bool render_
842 if (dohilite && highlight && (menu.hilite_pixmap != ParentRelative)) { 842 if (dohilite && highlight && (menu.hilite_pixmap != ParentRelative)) {
843 if (menu.hilite_pixmap) { 843 if (menu.hilite_pixmap) {
844 m_frame_pm.copyArea(menu.hilite_pixmap, 844 m_frame_pm.copyArea(menu.hilite_pixmap,
845 m_theme.hiliteGC(), hoff_x, hoff_y, 845 m_theme.hiliteGC().gc(), hoff_x, hoff_y,
846 hilite_x, hilite_y, 846 hilite_x, hilite_y,
847 hilite_w, hilite_h); 847 hilite_w, hilite_h);
848 } else { 848 } else {
849 m_frame_pm.fillRectangle(m_theme.hiliteGC(), 849 m_frame_pm.fillRectangle(m_theme.hiliteGC().gc(),
850 hilite_x, hilite_y, hilite_w, hilite_h); 850 hilite_x, hilite_y, hilite_w, hilite_h);
851 } 851 }
852 852
@@ -876,12 +876,12 @@ void Menu::drawItem(unsigned int index, bool highlight, bool clear, bool render_
876 } else { 876 } else {
877 if (menu.sel_pixmap) { 877 if (menu.sel_pixmap) {
878 m_frame_pm.copyArea(highlight ? menu.frame_pixmap : menu.sel_pixmap, 878 m_frame_pm.copyArea(highlight ? menu.frame_pixmap : menu.sel_pixmap,
879 m_theme.hiliteGC(), 879 m_theme.hiliteGC().gc(),
880 0, 0, 880 0, 0,
881 sel_x, sel_y, 881 sel_x, sel_y,
882 half_w, half_w); 882 half_w, half_w);
883 } else { 883 } else {
884 m_frame_pm.fillRectangle(m_theme.hiliteGC(), 884 m_frame_pm.fillRectangle(m_theme.hiliteGC().gc(),
885 sel_x, sel_y, half_w, half_w); 885 sel_x, sel_y, half_w, half_w);
886 } 886 }
887 } 887 }