X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fstyle.hh;h=2eb214c577fb7e119187c25e4ba2ea624a1ef255;hb=c4a1fac49da32250dc4567880b385feb7feaa908;hp=d13a1282c3e8dc59d50f51121ed8a9004c97516e;hpb=6852efaa9e4c5915aba5f9895a8f09cd9593083e;p=chaz%2Fopenbox diff --git a/otk/style.hh b/otk/style.hh index d13a1282..2eb214c5 100644 --- a/otk/style.hh +++ b/otk/style.hh @@ -62,8 +62,7 @@ public: public: Style(); - Style(unsigned int); - Style(unsigned int, BImageControl *); + Style(BImageControl *); ~Style(); void doJustify(const std::string &text, int &start_pos, @@ -85,7 +84,7 @@ public: BFont *readDatabaseFont(const std::string &rbasename, const Configuration &style); - void load(Configuration &); + void load(const Configuration &style); inline BColor *getBorderColor(void) { return &border_color; } @@ -134,8 +133,10 @@ public: inline const BTexture &getFrameFocus() const { return f_focus; } inline const BTexture &getFrameUnfocus() const { return f_unfocus; } - inline void setImageControl(BImageControl *c) { image_control = c; } - inline void setScreenNumber(unsigned int scr) { screen_number = scr; } + inline void setImageControl(BImageControl *c) { + image_control = c; + screen_number = c->getScreenInfo()->getScreenNumber(); + } inline unsigned int getScreen(void) { return screen_number; } // XXX add inline accessors for the rest of the bummy