diff options
author | akir <akir> | 2004-08-30 11:33:23 (GMT) |
---|---|---|
committer | akir <akir> | 2004-08-30 11:33:23 (GMT) |
commit | d4077526b46ed02a68bdce775d37f2d008c2017e (patch) | |
tree | d89b03d54f203a461c50897b2b85984d240c67b6 /src | |
parent | 6a9942733130270c347650ab90adc9f2459b02cd (diff) | |
download | fluxbox_paul-d4077526b46ed02a68bdce775d37f2d008c2017e.zip fluxbox_paul-d4077526b46ed02a68bdce775d37f2d008c2017e.tar.bz2 |
antialias- and alpha-entries only in menu when its compiled in
Diffstat (limited to 'src')
-rw-r--r-- | src/Screen.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index ace87d9..e947de7 100644 --- a/src/Screen.cc +++ b/src/Screen.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: Screen.cc,v 1.285 2004/07/14 18:28:05 fluxgen Exp $ | 25 | // $Id: Screen.cc,v 1.286 2004/08/30 11:33:23 akir Exp $ |
26 | 26 | ||
27 | 27 | ||
28 | #include "Screen.hh" | 28 | #include "Screen.hh" |
@@ -1813,18 +1813,20 @@ void BScreen::setupConfigmenu(FbTk::Menu &menu) { | |||
1813 | _BOOLITEM(Configmenu, ClickRaises, | 1813 | _BOOLITEM(Configmenu, ClickRaises, |
1814 | "Click Raises", "Click Raises", | 1814 | "Click Raises", "Click Raises", |
1815 | *resource.click_raises, saverc_cmd); | 1815 | *resource.click_raises, saverc_cmd); |
1816 | #ifdef USE_XFT | ||
1816 | // setup antialias cmd to reload style and save resource on toggle | 1817 | // setup antialias cmd to reload style and save resource on toggle |
1817 | _BOOLITEM(Configmenu, AntiAlias, | 1818 | _BOOLITEM(Configmenu, AntiAlias, |
1818 | "AntiAlias", "Use Anti-aliased fonts", | 1819 | "AntiAlias", "Use Anti-aliased fonts", |
1819 | *resource.antialias, save_and_reconfigure); | 1820 | *resource.antialias, save_and_reconfigure); |
1820 | 1821 | #endif // USE_XFT | |
1821 | #undef _BOOLITEM | 1822 | #undef _BOOLITEM |
1822 | 1823 | ||
1824 | #ifdef HAVE_XRENDER | ||
1823 | FbTk::MenuItem *menu_alpha_item = new IntResMenuItem("Menu Alpha", resource.menu_alpha, | 1825 | FbTk::MenuItem *menu_alpha_item = new IntResMenuItem("Menu Alpha", resource.menu_alpha, |
1824 | 0, 255); | 1826 | 0, 255); |
1825 | menu_alpha_item->setCommand(saverc_cmd); | 1827 | menu_alpha_item->setCommand(saverc_cmd); |
1826 | menu.insert(menu_alpha_item); | 1828 | menu.insert(menu_alpha_item); |
1827 | 1829 | #endif // HAVE_XRENDER | |
1828 | 1830 | ||
1829 | 1831 | ||
1830 | // finaly update menu | 1832 | // finaly update menu |