all repos — fluxbox @ e1eb5e225b316a55aaab34547c20ad8c67168c3e

custom fork of the fluxbox windowmanager

remove line style resources from init file
Mark Tiefenbruck mark@fluxbox.org
commit

e1eb5e225b316a55aaab34547c20ad8c67168c3e

parent

ab25696328c49b7551ea242b740ff9c79953f722

M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 1.1.2 *08/10/05: + * Remove line style resources from init file (Mark) + Screen.cc/hh * Remove rootcommand from init, as fbsetbg is run automatically nowadays. For other purposes, use startup instead. (Mark) Screen.cc/hh
M doc/asciidoc/fluxbox.1doc/asciidoc/fluxbox.1

@@ -1740,13 +1740,6 @@ session\&.screen0\&.iconbar\&.iconWidth: <integer>

Used to specify the iconbar button width for Left/Right alignment\&. Default: 70 -session\&.screen0\&.overlay\&.lineWidth: 1 -session\&.screen0\&.overlay\&.lineStyle: LineSolid -session\&.screen0\&.overlay\&.joinStyle: JoinMiter -session\&.screen0\&.overlay\&.capStyle: CapNotLast - These are options for how fluxbox draws lines\&. See - `man XSetLineAttributes\' for more details\&. Defaults: listed above - session\&.screen0\&.strftimeFormat: <date> This adjusts the way the current time is displayed in the toolbar\&. The strftime(3) format is used\&. Default: %I:%M %p
M doc/asciidoc/fluxbox.txtdoc/asciidoc/fluxbox.txt

@@ -788,13 +788,6 @@ session.screen0.iconbar.iconWidth: <integer>

Used to specify the iconbar button width for Left/Right alignment. Default: 70 -session.screen0.overlay.lineWidth: 1 -session.screen0.overlay.lineStyle: LineSolid -session.screen0.overlay.joinStyle: JoinMiter -session.screen0.overlay.capStyle: CapNotLast - These are options for how fluxbox draws lines. See - `man XSetLineAttributes' for more details. Defaults: listed above - session.screen0.strftimeFormat: <date> This adjusts the way the current time is displayed in the toolbar. The strftime(3) format is used. Default: %I:%M %p
M doc/fluxbox.1.indoc/fluxbox.1.in

@@ -1740,13 +1740,6 @@ session\&.screen0\&.iconbar\&.iconWidth: <integer>

Used to specify the iconbar button width for Left/Right alignment\&. Default: 70 -session\&.screen0\&.overlay\&.lineWidth: 1 -session\&.screen0\&.overlay\&.lineStyle: LineSolid -session\&.screen0\&.overlay\&.joinStyle: JoinMiter -session\&.screen0\&.overlay\&.capStyle: CapNotLast - These are options for how fluxbox draws lines\&. See - `man XSetLineAttributes\' for more details\&. Defaults: listed above - session\&.screen0\&.strftimeFormat: <date> This adjusts the way the current time is displayed in the toolbar\&. The strftime(3) format is used\&. Default: %I:%M %p
M src/RootTheme.ccsrc/RootTheme.cc

@@ -157,7 +157,6 @@ Display *disp = FbTk::App::instance()->display();

m_opgc.setForeground(WhitePixel(disp, screenNum())^BlackPixel(disp, screenNum())); m_opgc.setFunction(GXxor); m_opgc.setSubwindowMode(IncludeInferiors); - m_opgc.setLineAttributes(1, LineSolid, CapNotLast, JoinMiter); FbTk::ThemeManager::instance().loadTheme(*this); }
M src/RootTheme.hhsrc/RootTheme.hh

@@ -48,13 +48,6 @@ void reset() { m_first = true; reconfigTheme(); }

GC opGC() const { return m_opgc.gc(); } - void setLineAttributes(unsigned int width, - int line_style, - int cap_style, - int join_style) { - m_opgc.setLineAttributes(width, line_style, cap_style, join_style); - } - virtual FbTk::Subject &reconfigSig() { return FbTk::Theme::reconfigSig(); } virtual const FbTk::Subject &reconfigSig() const { return FbTk::Theme::reconfigSig(); }
M src/Screen.ccsrc/Screen.cc

@@ -311,20 +311,6 @@ menu_delay_close(rm, 200, scrname + ".menuDelayClose", altscrname+".MenuDelayClose"),

tab_width(rm, 64, scrname + ".tab.width", altscrname+".Tab.Width"), tooltip_delay(rm, 500, scrname + ".tooltipDelay", altscrname+".TooltipDelay"), menu_mode(rm, FbTk::MenuTheme::DELAY_OPEN, scrname+".menuMode", altscrname+".MenuMode"), - - gc_line_width(rm, 1, scrname+".overlay.lineWidth", altscrname+".Overlay.LineWidth"), - gc_line_style(rm, - FbTk::GContext::LINESOLID, - scrname+".overlay.lineStyle", - altscrname+".Overlay.LineStyle"), - gc_join_style(rm, - FbTk::GContext::JOINMITER, - scrname+".overlay.joinStyle", - altscrname+".Overlay.JoinStyle"), - gc_cap_style(rm, - FbTk::GContext::CAPNOTLAST, - scrname+".overlay.capStyle", - altscrname+".overlay.CapStyle"), allow_remote_actions(rm, false, scrname+".allowRemoteActions", altscrname+".AllowRemoteActions"), clientmenu_use_pixmap(rm, true, scrname+".clientMenu.usePixmap", altscrname+".ClientMenu.UsePixmap"), tabs_use_pixmap(rm, true, scrname+".tabs.usePixmap", altscrname+".Tabs.UsePixmap"),

@@ -531,15 +517,6 @@ }

} changeWorkspaceID(first_desktop); - - // we need to load win frame theme before we create any fluxbox window - // and after we've load the resources - // else we get some bad handle/grip height/width - // FbTk::ThemeManager::instance().loadTheme(*m_windowtheme.get()); - m_root_theme->setLineAttributes(*resource.gc_line_width, - *resource.gc_line_style, - *resource.gc_cap_style, - *resource.gc_join_style); #ifdef SLIT m_slit.reset(new Slit(*this, *layerManager().getLayer(Layer::DESKTOP),

@@ -947,11 +924,6 @@ if (*resource.menu_delay_close > 5000)

*resource.menu_delay_close = 5000; if (*resource.menu_delay_close < 0) *resource.menu_delay_close = 0; - - m_root_theme->setLineAttributes(*resource.gc_line_width, - *resource.gc_line_style, - *resource.gc_cap_style, - *resource.gc_join_style); m_menutheme->setDelayOpen(*resource.menu_delay); m_menutheme->setDelayClose(*resource.menu_delay_close);
M src/Screen.hhsrc/Screen.hh

@@ -560,11 +560,6 @@ FbTk::Resource<int> workspaces, edge_snap_threshold, focused_alpha,

unfocused_alpha, menu_alpha, menu_delay, menu_delay_close, tab_width, tooltip_delay; FbTk::Resource<FbTk::MenuTheme::MenuMode> menu_mode; - - FbTk::Resource<int> gc_line_width; - FbTk::Resource<FbTk::GContext::LineStyle> gc_line_style; - FbTk::Resource<FbTk::GContext::JoinStyle> gc_join_style; - FbTk::Resource<FbTk::GContext::CapStyle> gc_cap_style; FbTk::Resource<bool> allow_remote_actions; FbTk::Resource<bool> clientmenu_use_pixmap; FbTk::Resource<bool> tabs_use_pixmap;