~dobey/indicator-location/no-more-autostart

« back to all changes in this revision

Viewing changes to src/phone.cc

When 'Location settings…' is clicked, invoke the uri 'settings:///location' Fixes: #1533835
Approved by: PS Jenkins bot, Xavi Garcia

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
void on_settings_activated(GSimpleAction* simple G_GNUC_UNUSED, GVariant* parameter, gpointer user_data G_GNUC_UNUSED)
228
228
{
229
229
    const char* key = g_variant_get_string(parameter, nullptr);
230
 
    gchar* uri = g_strdup_printf("settings:///system/%s", key);
 
230
    gchar* uri = g_strdup_printf("settings:///%s", key);
 
231
    g_debug("%s calling url_dispatch_send '%s'", G_STRLOC, uri);
231
232
    url_dispatch_send(uri, on_uri_dispatched, nullptr);
232
233
    g_free(uri);
233
234
}
278
279
    g_menu_append_item(submenu.get(), location);
279
280
    g_object_unref(location);
280
281
 
281
 
    g_menu_append(submenu.get(), _("Location settings…"), "indicator." SETTINGS_ACTION_KEY "::security-privacy");
 
282
    g_menu_append(submenu.get(), _("Location settings…"), "indicator." SETTINGS_ACTION_KEY "::location");
282
283
}