Accepting request 238345 from GNOME:Factory
1 OBS-URL: https://build.opensuse.org/request/show/238345 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-control-center?expand=0&rev=116
This commit is contained in:
commit
9852eb16a5
@ -8,10 +8,10 @@ Subject: [PATCH] allow extra tools in shell
|
|||||||
shell/cc-window.c | 43 ++++++++++++++++++++++++++++++++++
|
shell/cc-window.c | 43 ++++++++++++++++++++++++++++++++++
|
||||||
2 files changed, 81 insertions(+), 23 deletions(-)
|
2 files changed, 81 insertions(+), 23 deletions(-)
|
||||||
|
|
||||||
diff --git a/shell/cc-panel-loader.c b/shell/cc-panel-loader.c
|
Index: gnome-control-center-3.12.1/shell/cc-panel-loader.c
|
||||||
index 26576dc..ec6b675 100644
|
===================================================================
|
||||||
--- a/shell/cc-panel-loader.c
|
--- gnome-control-center-3.12.1.orig/shell/cc-panel-loader.c
|
||||||
+++ b/shell/cc-panel-loader.c
|
+++ gnome-control-center-3.12.1/shell/cc-panel-loader.c
|
||||||
@@ -73,35 +73,40 @@ static struct {
|
@@ -73,35 +73,40 @@ static struct {
|
||||||
GType (*get_type)(void);
|
GType (*get_type)(void);
|
||||||
#endif
|
#endif
|
||||||
@ -42,7 +42,7 @@ index 26576dc..ec6b675 100644
|
|||||||
- PANEL_TYPE("online-accounts", cc_goa_panel_get_type ),
|
- PANEL_TYPE("online-accounts", cc_goa_panel_get_type ),
|
||||||
- PANEL_TYPE("power", cc_power_panel_get_type ),
|
- PANEL_TYPE("power", cc_power_panel_get_type ),
|
||||||
+ PANEL_TYPE("notifications", cc_notifications_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 ),
|
+ PANEL_TYPE("power", cc_power_panel_get_type ),
|
||||||
#ifdef BUILD_PRINTERS
|
#ifdef BUILD_PRINTERS
|
||||||
- PANEL_TYPE("printers", cc_printers_panel_get_type ),
|
- PANEL_TYPE("printers", cc_printers_panel_get_type ),
|
||||||
@ -74,7 +74,7 @@ index 26576dc..ec6b675 100644
|
|||||||
};
|
};
|
||||||
|
|
||||||
GList *
|
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;
|
char *desktop_name;
|
||||||
int category;
|
int category;
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ index 26576dc..ec6b675 100644
|
|||||||
app = g_desktop_app_info_new (desktop_name);
|
app = g_desktop_app_info_new (desktop_name);
|
||||||
g_free (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);
|
GType (*get_type) (void);
|
||||||
get_type = all_panels[i].get_type;
|
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);
|
GOptionGroup *group = cc_panel_get_option_group (get_type(), builder);
|
||||||
if (group == NULL)
|
if (group == NULL)
|
||||||
continue;
|
continue;
|
||||||
diff --git a/shell/cc-window.c b/shell/cc-window.c
|
Index: gnome-control-center-3.12.1/shell/cc-window.c
|
||||||
index 29b28e6..8e8f096 100644
|
===================================================================
|
||||||
--- a/shell/cc-window.c
|
--- gnome-control-center-3.12.1.orig/shell/cc-window.c
|
||||||
+++ b/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)
|
@@ -139,6 +139,39 @@ get_icon_name_from_g_icon (GIcon *gicon)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ index 29b28e6..8e8f096 100644
|
|||||||
static gboolean
|
static gboolean
|
||||||
activate_panel (CcWindow *self,
|
activate_panel (CcWindow *self,
|
||||||
const gchar *id,
|
const gchar *id,
|
||||||
@@ -153,6 +186,16 @@ activate_panel (CcWindow *self,
|
@@ -153,6 +186,16 @@ activate_panel (CcWindow *self
|
||||||
if (!id)
|
if (!id)
|
||||||
return FALSE;
|
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));
|
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));
|
cc_shell_set_active_panel (CC_SHELL (self), CC_PANEL (priv->current_panel));
|
||||||
gtk_widget_show (priv->current_panel);
|
gtk_widget_show (priv->current_panel);
|
||||||
--
|
|
||||||
1.7.12.4
|
|
||||||
|
|
||||||
|
@ -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
|
Fri Jun 13 08:03:48 UTC 2014 - fezhang@suse.com
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user