[gnome-shell] Use the standard apps tree for gnome-control-center panels desktop files
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Use the standard apps tree for gnome-control-center panels desktop files
- Date: Sun, 27 Jan 2013 00:56:21 +0000 (UTC)
commit 5d1de3302636526677faf5e2ba38b1b1e029ecbe
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 24 14:32:27 2013 -0500
Use the standard apps tree for gnome-control-center panels desktop files
gnome-control-center is planning on removing its own tree in the
future. Since it already installs these applications into
/usr/share/applications, just use this for now.
https://bugzilla.gnome.org/show_bug.cgi?id=692483
js/ui/popupMenu.js | 2 +-
js/ui/userMenu.js | 2 +-
src/shell-app-system.c | 21 ---------------------
src/shell-app-system.h | 4 ----
4 files changed, 2 insertions(+), 27 deletions(-)
---
diff --git a/js/ui/popupMenu.js b/js/ui/popupMenu.js
index 58b7cb8..9807b62 100644
--- a/js/ui/popupMenu.js
+++ b/js/ui/popupMenu.js
@@ -889,7 +889,7 @@ const PopupMenuBase = new Lang.Class({
addSettingsAction: function(title, desktopFile) {
let menuItem = this.addAction(title, function() {
- let app = Shell.AppSystem.get_default().lookup_setting(desktopFile);
+ let app = Shell.AppSystem.get_default().lookup_app(desktopFile);
if (!app) {
log('Settings panel for desktop file ' + desktopFile + ' could not be loaded!');
diff --git a/js/ui/userMenu.js b/js/ui/userMenu.js
index baa5a5e..a967ac2 100644
--- a/js/ui/userMenu.js
+++ b/js/ui/userMenu.js
@@ -822,7 +822,7 @@ const UserMenuButton = new Lang.Class({
_onMyAccountActivate: function() {
Main.overview.hide();
- let app = Shell.AppSystem.get_default().lookup_setting('gnome-user-accounts-panel.desktop');
+ let app = Shell.AppSystem.get_default().lookup_app('gnome-user-accounts-panel.desktop');
app.activate();
},
diff --git a/src/shell-app-system.c b/src/shell-app-system.c
index eb008d2..61e86f5 100644
--- a/src/shell-app-system.c
+++ b/src/shell-app-system.c
@@ -458,27 +458,6 @@ shell_app_system_get_tree (ShellAppSystem *self)
}
/**
- * shell_app_system_lookup_setting:
- * @system:
- * @id: desktop file id
- *
- * Returns: (transfer none): Application in gnomecc.menu, or %NULL if none
- */
-ShellApp *
-shell_app_system_lookup_setting (ShellAppSystem *self,
- const char *id)
-{
- ShellApp *app;
-
- /* Actually defer to the main app set if there's overlap */
- app = shell_app_system_lookup_app (self, id);
- if (app != NULL)
- return app;
-
- return g_hash_table_lookup (self->priv->setting_id_to_app, id);
-}
-
-/**
* shell_app_system_get_default:
*
* Return Value: (transfer none): The global #ShellAppSystem singleton
diff --git a/src/shell-app-system.h b/src/shell-app-system.h
index 7881622..78d37bd 100644
--- a/src/shell-app-system.h
+++ b/src/shell-app-system.h
@@ -63,8 +63,4 @@ GSList *shell_app_system_subsearch (ShellAppSystem *sys
GSList *shell_app_system_search_settings (ShellAppSystem *system,
GSList *terms);
-ShellApp *shell_app_system_lookup_setting (ShellAppSystem *system,
- const char *id);
-
-
#endif /* __SHELL_APP_SYSTEM_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]