1 |
nirbheek 11/09/30 19:43:34 |
2 |
|
3 |
Added: gnome-shell-3.0.2-user-removed-signals.patch |
4 |
gnome-shell-3.0.2-unbreak-extension-css.patch |
5 |
Log: |
6 |
Add GNOME Shell from the gnome overlay, for GNOME 3 |
7 |
|
8 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 gnome-base/gnome-shell/files/gnome-shell-3.0.2-user-removed-signals.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.0.2-user-removed-signals.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.0.2-user-removed-signals.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: gnome-shell-3.0.2-user-removed-signals.patch |
17 |
=================================================================== |
18 |
From 9a7f3dbd2030a5e1b54297f1aa7cf228eccafb27 Mon Sep 17 00:00:00 2001 |
19 |
From: Ray Strode <rstrode@××××××.com> |
20 |
Date: Tue, 24 May 2011 22:15:10 -0400 |
21 |
Subject: [PATCH] gdm: ignore user-removed signals for untracked users |
22 |
|
23 |
If we don't know about a user, we don't care if it goes away, |
24 |
and we shouldn't try to remove it from the book keeping. |
25 |
|
26 |
https://bugzilla.gnome.org/show_bug.cgi?id=647893 |
27 |
--- |
28 |
src/gdmuser/gdm-user-manager.c | 7 +++++++ |
29 |
1 files changed, 7 insertions(+), 0 deletions(-) |
30 |
|
31 |
diff --git a/src/gdmuser/gdm-user-manager.c b/src/gdmuser/gdm-user-manager.c |
32 |
index e7ca833..561be32 100644 |
33 |
--- a/src/gdmuser/gdm-user-manager.c |
34 |
+++ b/src/gdmuser/gdm-user-manager.c |
35 |
@@ -887,6 +887,13 @@ on_user_removed_in_accounts_service (DBusGProxy *proxy, |
36 |
|
37 |
user = g_hash_table_lookup (manager->priv->users_by_object_path, object_path); |
38 |
|
39 |
+ if (user == NULL) { |
40 |
+ g_debug ("GdmUserManager: ignoring untracked user %s", object_path); |
41 |
+ return; |
42 |
+ } else { |
43 |
+ g_debug ("GdmUserManager: tracked user %s removed from accounts service", object_path); |
44 |
+ } |
45 |
+ |
46 |
manager->priv->new_users = g_slist_remove (manager->priv->new_users, user); |
47 |
|
48 |
remove_user (manager, user); |
49 |
-- |
50 |
1.7.5.1 |
51 |
|
52 |
|
53 |
1.1 gnome-base/gnome-shell/files/gnome-shell-3.0.2-unbreak-extension-css.patch |
54 |
|
55 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.0.2-unbreak-extension-css.patch?rev=1.1&view=markup |
56 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-base/gnome-shell/files/gnome-shell-3.0.2-unbreak-extension-css.patch?rev=1.1&content-type=text/plain |
57 |
|
58 |
Index: gnome-shell-3.0.2-unbreak-extension-css.patch |
59 |
=================================================================== |
60 |
From 2674d96e547b27ed5c377804c1059bdfd926086e Mon Sep 17 00:00:00 2001 |
61 |
From: Giovanni Campagna <gcampagna@×××××××××.org> |
62 |
Date: Thu, 02 Jun 2011 15:05:08 +0000 |
63 |
Subject: StTheme: retrive the list of custom stylesheets and use it in loadTheme() |
64 |
|
65 |
Using the list of stylesheets loaded with st_theme_load_stylesheet(), |
66 |
one can build an StTheme that is completely identical to the previous |
67 |
one, except for one property (application-stylesheet). |
68 |
This allows rt and the user-theme extension to work while respecting |
69 |
the theming of other extensions. |
70 |
|
71 |
https://bugzilla.gnome.org/show_bug.cgi?id=650971 |
72 |
--- |
73 |
diff --git a/js/ui/main.js b/js/ui/main.js |
74 |
index 1d27b4c..c0f4845 100644 |
75 |
--- a/js/ui/main.js |
76 |
+++ b/js/ui/main.js |
77 |
@@ -393,12 +393,21 @@ function setThemeStylesheet(cssStylesheet) |
78 |
*/ |
79 |
function loadTheme() { |
80 |
let themeContext = St.ThemeContext.get_for_stage (global.stage); |
81 |
+ let previousTheme = themeContext.get_theme(); |
82 |
|
83 |
let cssStylesheet = _defaultCssStylesheet; |
84 |
if (_cssStylesheet != null) |
85 |
cssStylesheet = _cssStylesheet; |
86 |
|
87 |
let theme = new St.Theme ({ application_stylesheet: cssStylesheet }); |
88 |
+ |
89 |
+ if (previousTheme) { |
90 |
+ let customStylesheets = previousTheme.get_custom_stylesheets(); |
91 |
+ |
92 |
+ for (let i = 0; i < customStylesheets.length; i++) |
93 |
+ theme.load_stylesheet(customStylesheets[i]); |
94 |
+ } |
95 |
+ |
96 |
themeContext.set_theme (theme); |
97 |
} |
98 |
|
99 |
diff --git a/src/st/st-theme.c b/src/st/st-theme.c |
100 |
index 326d9de..2058e32 100644 |
101 |
--- a/src/st/st-theme.c |
102 |
+++ b/src/st/st-theme.c |
103 |
@@ -256,6 +256,30 @@ st_theme_unload_stylesheet (StTheme *theme, |
104 |
cr_stylesheet_unref (stylesheet); |
105 |
} |
106 |
|
107 |
+/** |
108 |
+ * st_theme_get_custom_stylesheets: |
109 |
+ * @theme: an #StTheme |
110 |
+ * |
111 |
+ * Returns: (transfer full) (element-type utf8): the list of stylesheet filenames |
112 |
+ * that were loaded with st_theme_load_stylesheet() |
113 |
+ */ |
114 |
+GSList* |
115 |
+st_theme_get_custom_stylesheets (StTheme *theme) |
116 |
+{ |
117 |
+ GSList *result = NULL; |
118 |
+ GSList *iter; |
119 |
+ |
120 |
+ for (iter = theme->custom_stylesheets; iter; iter = iter->next) |
121 |
+ { |
122 |
+ CRStyleSheet *stylesheet = iter->data; |
123 |
+ gchar *filename = g_hash_table_lookup (theme->filenames_by_stylesheet, stylesheet); |
124 |
+ |
125 |
+ result = g_slist_prepend (result, g_strdup (filename)); |
126 |
+ } |
127 |
+ |
128 |
+ return result; |
129 |
+} |
130 |
+ |
131 |
static GObject * |
132 |
st_theme_constructor (GType type, |
133 |
guint n_construct_properties, |
134 |
diff --git a/src/st/st-theme.h b/src/st/st-theme.h |
135 |
index 003c2a7..0a044bf 100644 |
136 |
--- a/src/st/st-theme.h |
137 |
+++ b/src/st/st-theme.h |
138 |
@@ -51,9 +51,9 @@ StTheme *st_theme_new (const char *application_stylesheet, |
139 |
const char *theme_stylesheet, |
140 |
const char *default_stylesheet); |
141 |
|
142 |
-gboolean st_theme_load_stylesheet (StTheme *theme, const char *path, GError **error); |
143 |
- |
144 |
-void st_theme_unload_stylesheet (StTheme *theme, const char *path); |
145 |
+gboolean st_theme_load_stylesheet (StTheme *theme, const char *path, GError **error); |
146 |
+void st_theme_unload_stylesheet (StTheme *theme, const char *path); |
147 |
+GSList *st_theme_get_custom_stylesheets (StTheme *theme); |
148 |
|
149 |
G_END_DECLS |
150 |
|
151 |
-- |
152 |
cgit v0.9.0.2 |