all repos — openbox @ 6b977b2ded0b8807dd05bb7ee0c318612600027d

openbox fork - make it a bit more like ryudo

add OtkFocusLabel
Dana Jansens danakj@orodu.net
commit

6b977b2ded0b8807dd05bb7ee0c318612600027d

parent

804b8cc6e5913913a76894a753619590a291c204

3 files changed, 6 insertions(+), 34 deletions(-)

jump to
M otk/Makefile.amotk/Makefile.am

@@ -4,11 +4,12 @@ INCLUDES= -I../src

noinst_LIBRARIES=libotk.a -libotk_a_SOURCES= color.cc display.cc font.cc gccache.cc image.cc property.cc \ - imagecontrol.cc rect.cc screeninfo.cc texture.cc timer.cc \ - timerqueuemanager.cc style.cc configuration.cc util.cc \ - widget.cc focuswidget.cc button.cc eventhandler.cc \ - eventdispatcher.cc application.cc +libotk_a_SOURCES= color.cc display.cc font.cc gccache.cc image.cc \ + property.cc imagecontrol.cc rect.cc screeninfo.cc \ + texture.cc timer.cc timerqueuemanager.cc style.cc \ + configuration.cc util.cc widget.cc focuswidget.cc \ + button.cc eventhandler.cc eventdispatcher.cc \ + focuslabel.cc application.cc MAINTAINERCLEANFILES= Makefile.in
M otk/style.ccotk/style.cc

@@ -156,32 +156,6 @@ bexec(s, s_info->displayString());

} -void Style::doJustify(const std::string &text, int &start_pos, - unsigned int max_length, - unsigned int modifier) const { - size_t text_len = text.size(); - unsigned int length; - - do { - length = font->measureString(std::string(text, 0, text_len)) + modifier; - } while (length > max_length && text_len-- > 0); - - switch (justify) { - case RightJustify: - start_pos += max_length - length; - break; - - case CenterJustify: - start_pos += (max_length - length) / 2; - break; - - case LeftJustify: - default: - break; - } -} - - void Style::readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask, const Configuration &style) { Window root_window = OBDisplay::screenInfo(screen_number)->getRootWindow();
M otk/style.hhotk/style.hh

@@ -65,9 +65,6 @@ Style();

Style(BImageControl *); ~Style(); - void doJustify(const std::string &text, int &start_pos, - unsigned int max_length, unsigned int modifier) const; - void readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask, const Configuration &style);