Merge lp:~charlesk/indicator-location/lp-1234975 into lp:indicator-location/13.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 52
Merged at revision: 51
Proposed branch: lp:~charlesk/indicator-location/lp-1234975
Merge into: lp:indicator-location/13.10
Diff against target: 26 lines (+3/-2)
2 files modified
src/phone.cc (+2/-1)
tests/phone-test.cc (+1/-1)
To merge this branch: bzr merge lp:~charlesk/indicator-location/lp-1234975
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+189937@code.launchpad.net

Description of the change

Since the "Location Settings" panel is disabled in system-settings for 13.10, hide the indicator's menuitem that activates that panel.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ted Gould (ted) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/phone.cc'
--- src/phone.cc 2013-10-03 20:58:09 +0000
+++ src/phone.cc 2013-10-08 18:20:14 +0000
@@ -251,7 +251,8 @@
251 submenu = g_menu_new ();251 submenu = g_menu_new ();
252 g_menu_append (submenu, _("Location detection"), "indicator." LOCATION_ACTION_KEY);252 g_menu_append (submenu, _("Location detection"), "indicator." LOCATION_ACTION_KEY);
253 g_menu_append (submenu, _("GPS"), "indicator." GPS_ACTION_KEY);253 g_menu_append (submenu, _("GPS"), "indicator." GPS_ACTION_KEY);
254 g_menu_append (submenu, _("Location settingsā€¦"), "indicator." SETTINGS_ACTION_KEY "::location");254 // disabled for 13.04 -- the location settings panel isn't complete
255 // g_menu_append (submenu, _("Location settingsā€¦"), "indicator." SETTINGS_ACTION_KEY "::location");
255256
256 /* add the submenu to a new header */257 /* add the submenu to a new header */
257 header = g_menu_item_new (nullptr, "indicator." HEADER_ACTION_KEY);258 header = g_menu_item_new (nullptr, "indicator." HEADER_ACTION_KEY);
258259
=== modified file 'tests/phone-test.cc'
--- tests/phone-test.cc 2013-08-25 21:44:50 +0000
+++ tests/phone-test.cc 2013-10-08 18:20:14 +0000
@@ -96,7 +96,7 @@
96{96{
97 ASSERT_TRUE (action_menuitem_exists ("indicator.location-detection-enabled"));97 ASSERT_TRUE (action_menuitem_exists ("indicator.location-detection-enabled"));
98 ASSERT_TRUE (action_menuitem_exists ("indicator.gps-detection-enabled"));98 ASSERT_TRUE (action_menuitem_exists ("indicator.gps-detection-enabled"));
99 ASSERT_TRUE (action_menuitem_exists ("indicator.settings"));99 //ASSERT_TRUE (action_menuitem_exists ("indicator.settings"));
100}100}
101101
102TEST_F (PhoneTest, PlatformTogglesGPS)102TEST_F (PhoneTest, PlatformTogglesGPS)

Subscribers

People subscribed via source and target branches