summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2018-11-16 15:42:54 -0200
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-01-07 10:59:30 -0200
commit1245fd787be1d623d7d01fb1acaabdcb27732ff4 (patch)
treef3ee5dbe6322740bdd7f11e0ce6aabfaa1eb5913 /shell
parenta800e975103945d2601f5d18db333b028c8c0ee8 (diff)
downloadgnome-control-center-1245fd787be1d623d7d01fb1acaabdcb27732ff4.tar.gz
Introduce Applications panel
This is an initial implementation of most of the intended functionality for this panel. Flatpak integration itself is implemented by spawning "flatpak info -m $appid", which gives us the metadata in key file format, and allows flatpak to be a runtime dependency. Even after removing the .desktop suffix, there can still be a difference between the app ID generated in this way and the flatpak ID, since flatpaks are allowed to export files whose prefix is the flatpak ID. Fix this by pulling the X-Flatpak key out of the desktop file. This would cause trouble for org.libreoffice.LibreOffice-math.
Diffstat (limited to 'shell')
-rw-r--r--shell/cc-panel-list.c1
-rw-r--r--shell/cc-panel-loader.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/shell/cc-panel-list.c b/shell/cc-panel-list.c
index 17899d44e..5bdc4c899 100644
--- a/shell/cc-panel-list.c
+++ b/shell/cc-panel-list.c
@@ -386,6 +386,7 @@ static const gchar * const panel_order[] = {
"universal-access",
"online-accounts",
"privacy",
+ "applications",
"sharing",
"sound",
"power",
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index 2798735c4..5eeb44e60 100644
--- a/shell/cc-panel-loader.c
+++ b/shell/cc-panel-loader.c
@@ -31,6 +31,7 @@
#ifndef CC_PANEL_LOADER_NO_GTYPES
/* Extension points */
+extern GType cc_applications_panel_get_type (void);
extern GType cc_background_panel_get_type (void);
#ifdef BUILD_BLUETOOTH
extern GType cc_bluetooth_panel_get_type (void);
@@ -83,6 +84,7 @@ extern void cc_wacom_panel_static_init_func (void);
static CcPanelLoaderVtable default_panels[] =
{
+ PANEL_TYPE("applications", cc_applications_panel_get_type, NULL),
PANEL_TYPE("background", cc_background_panel_get_type, NULL),
#ifdef BUILD_BLUETOOTH
PANEL_TYPE("bluetooth", cc_bluetooth_panel_get_type, NULL),