shell-model, panel-loader: Add CC_CATEGORY_PRIVACY
This is supposed to classify pages that belong in the Privacy panel.
This commit is contained in:
parent
3aeb837cb0
commit
ec280a8755
3 changed files with 5 additions and 0 deletions
|
@ -508,6 +508,8 @@ row_activated_cb (GtkWidget *listbox,
|
|||
data = g_object_get_data (G_OBJECT (row), "data");
|
||||
if (data->category == CC_CATEGORY_SYSTEM)
|
||||
parent_panel = "system";
|
||||
else if (data->category == CC_CATEGORY_PRIVACY)
|
||||
parent_panel = "privacy";
|
||||
|
||||
g_signal_emit (self, signals[SHOW_PANEL], 0, data->id, parent_panel);
|
||||
|
||||
|
|
|
@ -164,6 +164,8 @@ parse_categories (GDesktopAppInfo *app)
|
|||
retval = CC_CATEGORY_DETAILS;
|
||||
else if (g_strv_contains (const_strv (split), "X-GNOME-SystemSettings"))
|
||||
retval = CC_CATEGORY_SYSTEM;
|
||||
else if (g_strv_contains (const_strv (split), "X-GNOME-PrivacySettings"))
|
||||
retval = CC_CATEGORY_PRIVACY;
|
||||
else if (g_strv_contains (const_strv (split), "HardwareSettings"))
|
||||
retval = CC_CATEGORY_HARDWARE;
|
||||
|
||||
|
|
|
@ -39,6 +39,7 @@ typedef enum
|
|||
CC_CATEGORY_DEVICES,
|
||||
CC_CATEGORY_DETAILS,
|
||||
CC_CATEGORY_SYSTEM,
|
||||
CC_CATEGORY_PRIVACY,
|
||||
CC_CATEGORY_LAST
|
||||
} CcPanelCategory;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue