summaryrefslogtreecommitdiff
diff options
authorStephen M. Webb <stephen.webb@canonical.com>2012-12-10 23:33:50 +0000
committerTarmac <>2012-12-10 23:33:50 +0000
commit0cc2945530576eae074494e60d1c9061b409b1c0 (patch)
tree7ce4b6de38c0f16387330bb40702bef155b1812d
parent161ae96e946f809ae1359a53344890371c66c66c (diff)
parent143a8e6294b543566e969d86dcb14070ac29641e (diff)
Fixed a segfault in the standalone shortcuts tool caused by uninitialized global variables.
Approved by Nick Dedekind. (bzr r2966)
-rw-r--r--shortcuts/StandaloneShortcuts.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/shortcuts/StandaloneShortcuts.cpp b/shortcuts/StandaloneShortcuts.cpp
index b991a58ca..20c395f37 100644
--- a/shortcuts/StandaloneShortcuts.cpp
+++ b/shortcuts/StandaloneShortcuts.cpp
@@ -27,6 +27,7 @@
#include "BaseWindowRaiserImp.h"
#include "MockShortcutHint.h"
#include "ShortcutController.h"
+#include "unity-shared/UnitySettings.h"
using namespace unity;
@@ -241,6 +242,7 @@ int main(int argc, char** argv)
gtk_init(&argc, &argv);
nux::NuxInitialize(0);
+ unity::Settings settings;
BackgroundEffectHelper::blur_type = BLUR_NONE;
nux::WindowThread* wt = nux::CreateGUIThread(TEXT("Unity Shortcut Hint Overlay"), 1200, 720, 0, &ThreadWidgetInit, 0);