From 61e43a69e8826efcc1af9b2c5700f8c64a9d8564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Mon, 2 Oct 2017 21:28:26 +0200 Subject: [PATCH] Deskbar: fix invalid static use of be_control_look. --- src/apps/deskbar/PreferencesWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/deskbar/PreferencesWindow.cpp b/src/apps/deskbar/PreferencesWindow.cpp index 242126939e..99f9035578 100644 --- a/src/apps/deskbar/PreferencesWindow.cpp +++ b/src/apps/deskbar/PreferencesWindow.cpp @@ -37,8 +37,6 @@ #include "StatusView.h" -static const float kIndentSpacing - = be_control_look->DefaultItemSpacing() * 2.3; static const uint32 kSettingsViewChanged = 'Svch'; static const char* kSettingsFileName = "prefs_window_settings"; @@ -144,6 +142,8 @@ PreferencesWindow::PreferencesWindow(BRect frame) fWindowAutoRaise->SetTarget(be_app); fWindowAutoHide->SetTarget(be_app); + const float spacing = be_control_look->DefaultItemSpacing() * 2.3; + // Applications BBox* appsSettingsBox = new BBox("applications"); appsSettingsBox->SetLabel(B_TRANSLATE("Applications")); @@ -153,7 +153,7 @@ PreferencesWindow::PreferencesWindow(BRect frame) .Add(fAppsSortTrackerFirst) .Add(fAppsShowExpanders) .AddGroup(B_HORIZONTAL, 0) - .Add(BSpaceLayoutItem::CreateHorizontalStrut(kIndentSpacing)) + .Add(BSpaceLayoutItem::CreateHorizontalStrut(spacing)) .Add(fAppsExpandNew) .End() .Add(fAppsHideLabels)