diff options
author | fluxgen <fluxgen> | 2003-06-25 13:07:34 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-06-25 13:07:34 (GMT) |
commit | 2a08e33735bea68dd0232d0f00775768069bbf12 (patch) | |
tree | a283b00d84f1206fdb4bb65d80c4a0cf9d9fff5d | |
parent | 2cc98fe16dff976b8e2cd2e517787fada8cdc817 (diff) | |
download | fluxbox-2a08e33735bea68dd0232d0f00775768069bbf12.zip fluxbox-2a08e33735bea68dd0232d0f00775768069bbf12.tar.bz2 |
compile time option for toolbar
-rw-r--r-- | configure.in | 22 | ||||
-rw-r--r-- | src/Makefile.am | 9 | ||||
-rw-r--r-- | src/fluxbox.cc | 19 |
3 files changed, 31 insertions, 19 deletions
diff --git a/configure.in b/configure.in index df9e325..49a0d6e 100644 --- a/configure.in +++ b/configure.in | |||
@@ -2,7 +2,7 @@ dnl configure.in for Fluxbox - created from configure.in Blackbox 0.61.1 | |||
2 | dnl Initialize autoconf and automake | 2 | dnl Initialize autoconf and automake |
3 | AC_INIT(src/main.cc) | 3 | AC_INIT(src/main.cc) |
4 | AC_PREREQ(2.52) | 4 | AC_PREREQ(2.52) |
5 | AM_INIT_AUTOMAKE(fluxbox,0.9.3,no-define) | 5 | AM_INIT_AUTOMAKE(fluxbox,cvs-2003-06-25,no-define) |
6 | 6 | ||
7 | dnl Determine default prefix | 7 | dnl Determine default prefix |
8 | test x$prefix = "xNONE" && prefix="$ac_default_prefix" | 8 | test x$prefix = "xNONE" && prefix="$ac_default_prefix" |
@@ -142,10 +142,28 @@ AC_ARG_ENABLE( | |||
142 | ) | 142 | ) |
143 | AM_CONDITIONAL(REMEMBER_SRC, test x$REMEMBER_SRC = xtrue) | 143 | AM_CONDITIONAL(REMEMBER_SRC, test x$REMEMBER_SRC = xtrue) |
144 | 144 | ||
145 | dnl Check for Toolbar options | ||
146 | AC_MSG_CHECKING([whether to include Toolbar]) | ||
147 | AC_ARG_ENABLE( | ||
148 | toolbar, [ --enable-toolbar include code for Toolbar [default=yes]], | ||
149 | if test x$enableval = "xyes"; then | ||
150 | AC_MSG_RESULT([yes]) | ||
151 | AC_DEFINE(USE_TOOLBAR, 1, " compile with toolbar") | ||
152 | TOOLBAR_SRC=true | ||
153 | else | ||
154 | AC_MSG_RESULT([no]) | ||
155 | TOOLBAR_SRC=false | ||
156 | fi, | ||
157 | AC_MSG_RESULT([yes]) | ||
158 | AC_DEFINE(USE_TOOLBAR, 1, " compile with toolbar") | ||
159 | TOOLBAR_SRC=true | ||
160 | ) | ||
161 | AM_CONDITIONAL(TOOLBAR_SRC, test x$TOOLBAR_SRC = xtrue) | ||
162 | |||
145 | AC_MSG_CHECKING([whether to have (POSIX) regular expression support]) | 163 | AC_MSG_CHECKING([whether to have (POSIX) regular expression support]) |
146 | AC_ARG_ENABLE( | 164 | AC_ARG_ENABLE( |
147 | regexp, | 165 | regexp, |
148 | [ --enable-regexp regular expression support [default=yes]], | 166 | [ --enable-regexp regular expression support [default=yes]], |
149 | if test x$enableval = "xyes"; then | 167 | if test x$enableval = "xyes"; then |
150 | AC_EGREP_HEADER([regex_t],regex.h, | 168 | AC_EGREP_HEADER([regex_t],regex.h, |
151 | AC_DEFINE(USE_REGEXP, 1, "Regular Expression support") | 169 | AC_DEFINE(USE_REGEXP, 1, "Regular Expression support") |
diff --git a/src/Makefile.am b/src/Makefile.am index bc4377d..4781bd8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -53,6 +53,9 @@ if REGEXP_SRC | |||
53 | REGEXP_SOURCE = RegExp.hh RegExp.cc ClientPattern.hh ClientPattern.cc | 53 | REGEXP_SOURCE = RegExp.hh RegExp.cc ClientPattern.hh ClientPattern.cc |
54 | endif | 54 | endif |
55 | endif | 55 | endif |
56 | if TOOLBAR_SRC | ||
57 | TOOLBAR_SOURCE = Toolbar.hh Toolbar.cc ToolbarHandler.hh ToolbarHandler.cc ToolbarTheme.hh ToolbarTheme.cc IconBar.hh IconBar.cc | ||
58 | endif | ||
56 | 59 | ||
57 | fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ | 60 | fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ |
58 | BoolMenuItem.hh \ | 61 | BoolMenuItem.hh \ |
@@ -60,7 +63,6 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ | |||
60 | FbAtoms.hh FbAtoms.cc FbWinFrame.hh FbWinFrame.cc \ | 63 | FbAtoms.hh FbAtoms.cc FbWinFrame.hh FbWinFrame.cc \ |
61 | FbWinFrameTheme.hh FbWinFrameTheme.cc \ | 64 | FbWinFrameTheme.hh FbWinFrameTheme.cc \ |
62 | fluxbox.cc fluxbox.hh ${gnome_SOURCE} \ | 65 | fluxbox.cc fluxbox.hh ${gnome_SOURCE} \ |
63 | IconBar.cc IconBar.hh \ | ||
64 | I18n.cc I18n.hh \ | 66 | I18n.cc I18n.hh \ |
65 | Keys.cc Keys.hh main.cc \ | 67 | Keys.cc Keys.hh main.cc \ |
66 | Netizen.cc Netizen.hh \ | 68 | Netizen.cc Netizen.hh \ |
@@ -69,9 +71,6 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ | |||
69 | Screen.cc Screen.hh \ | 71 | Screen.cc Screen.hh \ |
70 | Slit.cc Slit.hh SlitTheme.hh SlitClient.hh SlitClient.cc \ | 72 | Slit.cc Slit.hh SlitTheme.hh SlitClient.hh SlitClient.cc \ |
71 | TextButton.hh TextButton.cc \ | 73 | TextButton.hh TextButton.cc \ |
72 | Toolbar.cc Toolbar.hh \ | ||
73 | ToolbarHandler.cc ToolbarHandler.hh \ | ||
74 | ToolbarTheme.hh ToolbarTheme.cc \ | ||
75 | WinButton.hh WinButton.cc \ | 74 | WinButton.hh WinButton.cc \ |
76 | WinButtonTheme.hh WinButtonTheme.cc \ | 75 | WinButtonTheme.hh WinButtonTheme.cc \ |
77 | Window.cc Window.hh \ | 76 | Window.cc Window.hh \ |
@@ -82,7 +81,7 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ | |||
82 | Strut.hh \ | 81 | Strut.hh \ |
83 | Xinerama.hh \ | 82 | Xinerama.hh \ |
84 | Xutil.hh Xutil.cc \ | 83 | Xutil.hh Xutil.cc \ |
85 | ${REMEMBER_SOURCE} ${REGEXP_SOURCE} | 84 | ${REMEMBER_SOURCE} ${REGEXP_SOURCE} ${TOOLBAR_SOURCE} |
86 | 85 | ||
87 | 86 | ||
88 | LDADD=FbTk/libFbTk.a | 87 | LDADD=FbTk/libFbTk.a |
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index d2cfe8d..b4c056f 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -22,13 +22,12 @@ | |||
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: fluxbox.cc,v 1.163 2003/06/25 06:02:53 fluxgen Exp $ | 25 | // $Id: fluxbox.cc,v 1.164 2003/06/25 13:06:04 fluxgen Exp $ |
26 | 26 | ||
27 | #include "fluxbox.hh" | 27 | #include "fluxbox.hh" |
28 | 28 | ||
29 | #include "I18n.hh" | 29 | #include "I18n.hh" |
30 | #include "Screen.hh" | 30 | #include "Screen.hh" |
31 | #include "Toolbar.hh" | ||
32 | #include "Window.hh" | 31 | #include "Window.hh" |
33 | #include "Workspace.hh" | 32 | #include "Workspace.hh" |
34 | #include "StringUtil.hh" | 33 | #include "StringUtil.hh" |
@@ -41,7 +40,6 @@ | |||
41 | #include "WinClient.hh" | 40 | #include "WinClient.hh" |
42 | #include "Keys.hh" | 41 | #include "Keys.hh" |
43 | #include "FbAtoms.hh" | 42 | #include "FbAtoms.hh" |
44 | #include "ToolbarHandler.hh" | ||
45 | 43 | ||
46 | //Use GNU extensions | 44 | //Use GNU extensions |
47 | #ifndef _GNU_SOURCE | 45 | #ifndef _GNU_SOURCE |
@@ -64,6 +62,10 @@ | |||
64 | #ifdef REMEMBER | 62 | #ifdef REMEMBER |
65 | #include "Remember.hh" | 63 | #include "Remember.hh" |
66 | #endif // REMEMBER | 64 | #endif // REMEMBER |
65 | #ifdef USE_TOOLBAR | ||
66 | #include "Toolbar.hh" | ||
67 | #include "ToolbarHandler.hh" | ||
68 | #endif // USE_TOOLBAR | ||
67 | 69 | ||
68 | // X headers | 70 | // X headers |
69 | #include <X11/Xlib.h> | 71 | #include <X11/Xlib.h> |
@@ -524,7 +526,9 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile | |||
524 | #endif // HAVE_RANDR | 526 | #endif // HAVE_RANDR |
525 | 527 | ||
526 | m_screen_list.push_back(screen); | 528 | m_screen_list.push_back(screen); |
529 | #ifdef USE_TOOLBAR | ||
527 | m_atomhandler.push_back(new ToolbarHandler(*screen)); | 530 | m_atomhandler.push_back(new ToolbarHandler(*screen)); |
531 | #endif // USE_TOOLBAR | ||
528 | 532 | ||
529 | // attach screen signals to this | 533 | // attach screen signals to this |
530 | screen->currentWorkspaceSig().attach(this); | 534 | screen->currentWorkspaceSig().attach(this); |
@@ -1808,15 +1812,6 @@ void Fluxbox::save_rc() { | |||
1808 | BScreen *screen = *it; | 1812 | BScreen *screen = *it; |
1809 | int screen_number = screen->screenNumber(); | 1813 | int screen_number = screen->screenNumber(); |
1810 | 1814 | ||
1811 | /* | ||
1812 | #ifdef SLIT | ||
1813 | #ifdef XINERAMA | ||
1814 | sprintf(rc_string, "session.screen%d.slit.onHead: %d", screen_number, | ||
1815 | screen->getSlitOnHead()); | ||
1816 | XrmPutLineResource(&new_blackboxrc, rc_string); | ||
1817 | #endif // XINERAMA | ||
1818 | #endif // SLIT | ||
1819 | */ | ||
1820 | sprintf(rc_string, "session.screen%d.rowPlacementDirection: %s", screen_number, | 1815 | sprintf(rc_string, "session.screen%d.rowPlacementDirection: %s", screen_number, |
1821 | ((screen->getRowPlacementDirection() == BScreen::LEFTRIGHT) ? | 1816 | ((screen->getRowPlacementDirection() == BScreen::LEFTRIGHT) ? |
1822 | "LeftToRight" : "RightToLeft")); | 1817 | "LeftToRight" : "RightToLeft")); |