compile time option for toolbar
This commit is contained in:
parent
2cc98fe16d
commit
2a08e33735
3 changed files with 31 additions and 19 deletions
20
configure.in
20
configure.in
|
@ -2,7 +2,7 @@ dnl configure.in for Fluxbox - created from configure.in Blackbox 0.61.1
|
||||||
dnl Initialize autoconf and automake
|
dnl Initialize autoconf and automake
|
||||||
AC_INIT(src/main.cc)
|
AC_INIT(src/main.cc)
|
||||||
AC_PREREQ(2.52)
|
AC_PREREQ(2.52)
|
||||||
AM_INIT_AUTOMAKE(fluxbox,0.9.3,no-define)
|
AM_INIT_AUTOMAKE(fluxbox,cvs-2003-06-25,no-define)
|
||||||
|
|
||||||
dnl Determine default prefix
|
dnl Determine default prefix
|
||||||
test x$prefix = "xNONE" && prefix="$ac_default_prefix"
|
test x$prefix = "xNONE" && prefix="$ac_default_prefix"
|
||||||
|
@ -142,6 +142,24 @@ AC_ARG_ENABLE(
|
||||||
)
|
)
|
||||||
AM_CONDITIONAL(REMEMBER_SRC, test x$REMEMBER_SRC = xtrue)
|
AM_CONDITIONAL(REMEMBER_SRC, test x$REMEMBER_SRC = xtrue)
|
||||||
|
|
||||||
|
dnl Check for Toolbar options
|
||||||
|
AC_MSG_CHECKING([whether to include Toolbar])
|
||||||
|
AC_ARG_ENABLE(
|
||||||
|
toolbar, [ --enable-toolbar include code for Toolbar [default=yes]],
|
||||||
|
if test x$enableval = "xyes"; then
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
AC_DEFINE(USE_TOOLBAR, 1, " compile with toolbar")
|
||||||
|
TOOLBAR_SRC=true
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT([no])
|
||||||
|
TOOLBAR_SRC=false
|
||||||
|
fi,
|
||||||
|
AC_MSG_RESULT([yes])
|
||||||
|
AC_DEFINE(USE_TOOLBAR, 1, " compile with toolbar")
|
||||||
|
TOOLBAR_SRC=true
|
||||||
|
)
|
||||||
|
AM_CONDITIONAL(TOOLBAR_SRC, test x$TOOLBAR_SRC = xtrue)
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether to have (POSIX) regular expression support])
|
AC_MSG_CHECKING([whether to have (POSIX) regular expression support])
|
||||||
AC_ARG_ENABLE(
|
AC_ARG_ENABLE(
|
||||||
regexp,
|
regexp,
|
||||||
|
|
|
@ -53,6 +53,9 @@ if REGEXP_SRC
|
||||||
REGEXP_SOURCE = RegExp.hh RegExp.cc ClientPattern.hh ClientPattern.cc
|
REGEXP_SOURCE = RegExp.hh RegExp.cc ClientPattern.hh ClientPattern.cc
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
if TOOLBAR_SRC
|
||||||
|
TOOLBAR_SOURCE = Toolbar.hh Toolbar.cc ToolbarHandler.hh ToolbarHandler.cc ToolbarTheme.hh ToolbarTheme.cc IconBar.hh IconBar.cc
|
||||||
|
endif
|
||||||
|
|
||||||
fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \
|
fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \
|
||||||
BoolMenuItem.hh \
|
BoolMenuItem.hh \
|
||||||
|
@ -60,7 +63,6 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \
|
||||||
FbAtoms.hh FbAtoms.cc FbWinFrame.hh FbWinFrame.cc \
|
FbAtoms.hh FbAtoms.cc FbWinFrame.hh FbWinFrame.cc \
|
||||||
FbWinFrameTheme.hh FbWinFrameTheme.cc \
|
FbWinFrameTheme.hh FbWinFrameTheme.cc \
|
||||||
fluxbox.cc fluxbox.hh ${gnome_SOURCE} \
|
fluxbox.cc fluxbox.hh ${gnome_SOURCE} \
|
||||||
IconBar.cc IconBar.hh \
|
|
||||||
I18n.cc I18n.hh \
|
I18n.cc I18n.hh \
|
||||||
Keys.cc Keys.hh main.cc \
|
Keys.cc Keys.hh main.cc \
|
||||||
Netizen.cc Netizen.hh \
|
Netizen.cc Netizen.hh \
|
||||||
|
@ -69,9 +71,6 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \
|
||||||
Screen.cc Screen.hh \
|
Screen.cc Screen.hh \
|
||||||
Slit.cc Slit.hh SlitTheme.hh SlitClient.hh SlitClient.cc \
|
Slit.cc Slit.hh SlitTheme.hh SlitClient.hh SlitClient.cc \
|
||||||
TextButton.hh TextButton.cc \
|
TextButton.hh TextButton.cc \
|
||||||
Toolbar.cc Toolbar.hh \
|
|
||||||
ToolbarHandler.cc ToolbarHandler.hh \
|
|
||||||
ToolbarTheme.hh ToolbarTheme.cc \
|
|
||||||
WinButton.hh WinButton.cc \
|
WinButton.hh WinButton.cc \
|
||||||
WinButtonTheme.hh WinButtonTheme.cc \
|
WinButtonTheme.hh WinButtonTheme.cc \
|
||||||
Window.cc Window.hh \
|
Window.cc Window.hh \
|
||||||
|
@ -82,7 +81,7 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \
|
||||||
Strut.hh \
|
Strut.hh \
|
||||||
Xinerama.hh \
|
Xinerama.hh \
|
||||||
Xutil.hh Xutil.cc \
|
Xutil.hh Xutil.cc \
|
||||||
${REMEMBER_SOURCE} ${REGEXP_SOURCE}
|
${REMEMBER_SOURCE} ${REGEXP_SOURCE} ${TOOLBAR_SOURCE}
|
||||||
|
|
||||||
|
|
||||||
LDADD=FbTk/libFbTk.a
|
LDADD=FbTk/libFbTk.a
|
||||||
|
|
|
@ -22,13 +22,12 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: fluxbox.cc,v 1.163 2003/06/25 06:02:53 fluxgen Exp $
|
// $Id: fluxbox.cc,v 1.164 2003/06/25 13:06:04 fluxgen Exp $
|
||||||
|
|
||||||
#include "fluxbox.hh"
|
#include "fluxbox.hh"
|
||||||
|
|
||||||
#include "I18n.hh"
|
#include "I18n.hh"
|
||||||
#include "Screen.hh"
|
#include "Screen.hh"
|
||||||
#include "Toolbar.hh"
|
|
||||||
#include "Window.hh"
|
#include "Window.hh"
|
||||||
#include "Workspace.hh"
|
#include "Workspace.hh"
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
|
@ -41,7 +40,6 @@
|
||||||
#include "WinClient.hh"
|
#include "WinClient.hh"
|
||||||
#include "Keys.hh"
|
#include "Keys.hh"
|
||||||
#include "FbAtoms.hh"
|
#include "FbAtoms.hh"
|
||||||
#include "ToolbarHandler.hh"
|
|
||||||
|
|
||||||
//Use GNU extensions
|
//Use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -64,6 +62,10 @@
|
||||||
#ifdef REMEMBER
|
#ifdef REMEMBER
|
||||||
#include "Remember.hh"
|
#include "Remember.hh"
|
||||||
#endif // REMEMBER
|
#endif // REMEMBER
|
||||||
|
#ifdef USE_TOOLBAR
|
||||||
|
#include "Toolbar.hh"
|
||||||
|
#include "ToolbarHandler.hh"
|
||||||
|
#endif // USE_TOOLBAR
|
||||||
|
|
||||||
// X headers
|
// X headers
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
@ -524,7 +526,9 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name, const char *rcfile
|
||||||
#endif // HAVE_RANDR
|
#endif // HAVE_RANDR
|
||||||
|
|
||||||
m_screen_list.push_back(screen);
|
m_screen_list.push_back(screen);
|
||||||
|
#ifdef USE_TOOLBAR
|
||||||
m_atomhandler.push_back(new ToolbarHandler(*screen));
|
m_atomhandler.push_back(new ToolbarHandler(*screen));
|
||||||
|
#endif // USE_TOOLBAR
|
||||||
|
|
||||||
// attach screen signals to this
|
// attach screen signals to this
|
||||||
screen->currentWorkspaceSig().attach(this);
|
screen->currentWorkspaceSig().attach(this);
|
||||||
|
@ -1808,15 +1812,6 @@ void Fluxbox::save_rc() {
|
||||||
BScreen *screen = *it;
|
BScreen *screen = *it;
|
||||||
int screen_number = screen->screenNumber();
|
int screen_number = screen->screenNumber();
|
||||||
|
|
||||||
/*
|
|
||||||
#ifdef SLIT
|
|
||||||
#ifdef XINERAMA
|
|
||||||
sprintf(rc_string, "session.screen%d.slit.onHead: %d", screen_number,
|
|
||||||
screen->getSlitOnHead());
|
|
||||||
XrmPutLineResource(&new_blackboxrc, rc_string);
|
|
||||||
#endif // XINERAMA
|
|
||||||
#endif // SLIT
|
|
||||||
*/
|
|
||||||
sprintf(rc_string, "session.screen%d.rowPlacementDirection: %s", screen_number,
|
sprintf(rc_string, "session.screen%d.rowPlacementDirection: %s", screen_number,
|
||||||
((screen->getRowPlacementDirection() == BScreen::LEFTRIGHT) ?
|
((screen->getRowPlacementDirection() == BScreen::LEFTRIGHT) ?
|
||||||
"LeftToRight" : "RightToLeft"));
|
"LeftToRight" : "RightToLeft"));
|
||||||
|
|
Loading…
Reference in a new issue