From 5a5f274ac73e890e75148446b3aa92397ce399a4 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 30 Nov 2002 20:14:04 +0000 Subject: not using imagecontrol --- src/Theme.cc | 32 +++++++++++++++----------------- src/Theme.hh | 9 ++++++--- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/src/Theme.cc b/src/Theme.cc index b924855..b41c859 100644 --- a/src/Theme.cc +++ b/src/Theme.cc @@ -21,15 +21,8 @@ // 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,12 +30,23 @@ #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 -#ifdef HAVE_CTYPE_H -# include +#ifdef HAVE_CTYPE_H +#include #endif // HAVE_CTYPE_H +// note: obsolete +extern void bexec(const char *command, char *displaystring); + #include #include #include @@ -51,21 +55,15 @@ 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."< #include #include + +class BImageControl; + /** Main theme class, holds themes for Window, toolbar, slit, menu and the rootCommand, for a specific screen. @@ -143,7 +147,6 @@ private: 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; -- cgit v0.11.2