summaryrefslogtreecommitdiff
path: root/tests
diff options
authorNeil Jagdish Patel <neil.patel@canonical.com>2011-02-10 14:34:30 +0000
committerNeil Jagdish Patel <neil.patel@canonical.com>2011-02-10 14:34:30 +0000
commit973bfe5d0de95f22fb7b22984ba57b42aa00c085 (patch)
tree9af9321422b9a3659eab7207d7733e9a1d211bd5 /tests
parent4a03f405dc23d6d031578691be86ce4c038474e6 (diff)
global search stuff
(bzr r822.1.14)
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
-rw-r--r--tests/TestPlaces.cpp8
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index ec6527363..5e4e4fa0a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -135,6 +135,8 @@ add_executable (test-places
../src/UBusMessages.h
../src/Introspectable.cpp
../src/Introspectable.h
+ ../src/PlaceEntryHome.cpp
+ ../src/PlaceEntryRemote.h
../src/PlaceEntryRemote.cpp
../src/PlaceEntryRemote.h
../src/PlaceEntry.h
diff --git a/tests/TestPlaces.cpp b/tests/TestPlaces.cpp
index 55456b27d..22e160923 100644
--- a/tests/TestPlaces.cpp
+++ b/tests/TestPlaces.cpp
@@ -48,13 +48,13 @@ public:
_combo->sigTriggered.connect (sigc::mem_fun (this, &TestApp::OnComboChangedFoRealz));
layout->AddView (_combo, 0, nux::eCenter, nux::eFix);
- PlacesView *view = new PlacesView ();
- view->SetMinMaxSize(938, 500);
- layout->AddView(view, 1, nux::eCenter, nux::eFix);
-
_factory = PlaceFactory::GetDefault ();
PopulateEntries ();
_factory->place_added.connect (sigc::mem_fun (this, &TestApp::OnPlaceAdded));
+
+ PlacesView *view = new PlacesView (_factory);
+ view->SetMinMaxSize(938, 500);
+ layout->AddView(view, 1, nux::eCenter, nux::eFix);
layout->SetContentDistribution(nux::eStackCenter);
nux::GetGraphicsThread()->SetLayout (layout);