all repos — fluxbox @ 5a5f274ac73e890e75148446b3aa92397ce399a4

custom fork of the fluxbox windowmanager

not using imagecontrol
fluxgen fluxgen
commit

5a5f274ac73e890e75148446b3aa92397ce399a4

parent

5754cfd26ee645b4bdcb819adbaebeb4094dd8e7

2 files changed, 21 insertions(+), 20 deletions(-)

jump to
M src/Theme.ccsrc/Theme.cc

@@ -21,15 +21,8 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Theme.cc,v 1.35 2002/11/25 14:07:21 fluxgen Exp $ +// $Id: Theme.cc,v 1.36 2002/11/30 20:14:04 fluxgen Exp $ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE -#endif // _GNU_SOURCE - -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif //HAVE_CONFIG_H_ #include "Theme.hh"

@@ -37,11 +30,22 @@ #include "i18n.hh"

#include "Basemenu.hh" #include "StringUtil.hh" +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif // _GNU_SOURCE + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif //HAVE_CONFIG_H_ + #include <X11/Xresource.h> -#ifdef HAVE_CTYPE_H -# include <ctype.h> +#ifdef HAVE_CTYPE_H +#include <ctype.h> #endif // HAVE_CTYPE_H + +// note: obsolete +extern void bexec(const char *command, char *displaystring); #include <cstdio> #include <cstdarg>

@@ -51,20 +55,14 @@ using namespace std;

Theme::Theme(Display *display, Window rootwindow, Colormap colormap, int screennum, BImageControl *ic, const char *filename, const char *rootcommand): -m_imagecontrol(ic), m_display(display), m_colormap(colormap), m_screennum(screennum), m_rootcommand(rootcommand==0 ? "" : rootcommand) //we dont want to send 0-pointer to std::string { -#ifdef DEBUG - cerr<<__FILE__<<"("<<__LINE__<<"): Creating."<<endl; -#endif //DEBUG - //default settings - load(filename); + //-------- create gc for the styles ------------ - XGCValues gcv; unsigned long gc_value_mask = GCForeground;
M src/Theme.hhsrc/Theme.hh

@@ -22,19 +22,23 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Theme.hh,v 1.18 2002/11/25 14:07:21 fluxgen Exp $ +// $Id: Theme.hh,v 1.19 2002/11/30 20:14:04 fluxgen Exp $ #ifndef THEME_HH #define THEME_HH -#include "Image.hh" #include "DrawUtil.hh" #include "Font.hh" +#include "Color.hh" +#include "Texture.hh" #include <X11/Xlib.h> #include <X11/Xresource.h> #include <string> + +class BImageControl; + /** Main theme class, holds themes for Window, toolbar, slit, menu and the rootCommand, for a specific screen.

@@ -143,7 +147,6 @@ ToolbarStyle m_toolbarstyle;

unsigned int m_bevel_width, m_border_width, m_handle_width, m_frame_width; FbTk::Color m_border_color; GC m_opgc; - BImageControl *m_imagecontrol; Display *m_display; XrmDatabase m_database; Colormap m_colormap;