Stephan Kulow 2014-06-27 04:53:13 +00:00 committed by Git OBS Bridge
commit 9852eb16a5
2 changed files with 18 additions and 15 deletions

View File

@ -8,10 +8,10 @@ Subject: [PATCH] allow extra tools in shell
shell/cc-window.c | 43 ++++++++++++++++++++++++++++++++++
2 files changed, 81 insertions(+), 23 deletions(-)
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
index 26576dc..ec6b675 100644
--- a/shell/cc-panel-loader.c
+++ b/shell/cc-panel-loader.c
Index: gnome-control-center-3.12.1/shell/cc-panel-loader.c
===================================================================
--- gnome-control-center-3.12.1.orig/shell/cc-panel-loader.c
+++ gnome-control-center-3.12.1/shell/cc-panel-loader.c
@@ -73,35 +73,40 @@ static struct {
GType (*get_type)(void);
#endif
@ -42,7 +42,7 @@ index 26576dc..ec6b675 100644
- PANEL_TYPE("online-accounts", cc_goa_panel_get_type ),
- PANEL_TYPE("power", cc_power_panel_get_type ),
+ PANEL_TYPE("notifications", cc_notifications_panel_get_type),
+ PANEL_TYPE("online-a ccounts", cc_goa_panel_get_type ),
+ PANEL_TYPE("online-accounts", cc_goa_panel_get_type ),
+ PANEL_TYPE("power", cc_power_panel_get_type ),
#ifdef BUILD_PRINTERS
- PANEL_TYPE("printers", cc_printers_panel_get_type ),
@ -74,7 +74,7 @@ index 26576dc..ec6b675 100644
};
GList *
@@ -160,8 +165,16 @@ cc_panel_loader_fill_model (CcShellModel *model)
@@ -160,8 +165,16 @@ cc_panel_loader_fill_model (CcShellModel
char *desktop_name;
int category;
@ -93,7 +93,7 @@ index 26576dc..ec6b675 100644
app = g_desktop_app_info_new (desktop_name);
g_free (desktop_name);
@@ -226,6 +239,8 @@ cc_panel_loader_add_option_groups (GOptionContext *context,
@@ -226,6 +239,8 @@ cc_panel_loader_add_option_groups (GOpti
{
GType (*get_type) (void);
get_type = all_panels[i].get_type;
@ -102,10 +102,10 @@ index 26576dc..ec6b675 100644
GOptionGroup *group = cc_panel_get_option_group (get_type(), builder);
if (group == NULL)
continue;
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 29b28e6..8e8f096 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
Index: gnome-control-center-3.12.1/shell/cc-window.c
===================================================================
--- gnome-control-center-3.12.1.orig/shell/cc-window.c
+++ gnome-control-center-3.12.1/shell/cc-window.c
@@ -139,6 +139,39 @@ get_icon_name_from_g_icon (GIcon *gicon)
return NULL;
}
@ -146,7 +146,7 @@ index 29b28e6..8e8f096 100644
static gboolean
activate_panel (CcWindow *self,
const gchar *id,
@@ -153,6 +186,16 @@ activate_panel (CcWindow *self,
@@ -153,6 +186,16 @@ activate_panel (CcWindow *self
if (!id)
return FALSE;
@ -163,6 +163,3 @@ index 29b28e6..8e8f096 100644
priv->current_panel = GTK_WIDGET (cc_panel_loader_load_by_name (CC_SHELL (self), id, parameters));
cc_shell_set_active_panel (CC_SHELL (self), CC_PANEL (priv->current_panel));
gtk_widget_show (priv->current_panel);
--
1.7.12.4

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jun 23 07:58:24 UTC 2014 - fcrozat@suse.com
- Update gnome-control-center-allow-yast-in-shell.patch: properly
display online-account panel.
-------------------------------------------------------------------
Fri Jun 13 08:03:48 UTC 2014 - fezhang@suse.com