Imported Debian patch 0.9.2-2
Michael Biebl
14 years ago
|
0 |
policykit-gnome (0.9.2-2) unstable; urgency=low
|
|
1 |
|
|
2 |
* debian/patches/05-fix-actions.patch
|
|
3 |
- Pull patch from Fedora CVS to make actions work again. When blocking
|
|
4 |
"clicked" because the user is not authenticated it should emit
|
|
5 |
"auth-start" so that the user is invited to authenticate.
|
|
6 |
(Closes: #524836)
|
|
7 |
* debian/patches/05-no-commas.patch
|
|
8 |
- Don't show excess commas when displaying user's real name. Patch pulled
|
|
9 |
from Ubuntu.
|
|
10 |
|
|
11 |
-- Michael Biebl <biebl@debian.org> Mon, 27 Apr 2009 11:39:07 +0200
|
|
12 |
|
0 | 13 |
policykit-gnome (0.9.2-1) unstable; urgency=low
|
1 | 14 |
|
2 | 15 |
* New upstream release.
|
|
0 |
# Ubuntu: https://bugs.launchpad.net/ubuntu/+source/policykit-gnome/+bug/332343
|
|
1 |
# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=572878
|
|
2 |
# Patch: http://bugzilla.gnome.org/attachment.cgi?id=129353&action=view
|
|
3 |
# Description: When "clicked" is blocked as the user is not authorized
|
|
4 |
# it should emit "auth-start" so that the user can authenticate. Makes
|
|
5 |
# it work with widgets that don't emit "activate", e.g. buttons.
|
|
6 |
--- ./polkit-gnome/polkit-gnome-action.c.old 2009-02-06 17:31:46.000000000 +0000
|
|
7 |
+++ ./polkit-gnome/polkit-gnome-action.c 2009-02-06 17:32:03.000000000 +0000
|
|
8 |
@@ -2062,6 +2062,8 @@ _button_clicked (GtkButton *button, PolK
|
|
9 |
case POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_ALWAYS:
|
|
10 |
/* g_debug ("blocking clicked"); */
|
|
11 |
g_signal_stop_emission_by_name (button, "clicked");
|
|
12 |
+ if (action->priv->polkit_action != NULL)
|
|
13 |
+ g_signal_emit (action, signals [AUTH_START_SIGNAL], 0);
|
|
14 |
break;
|
|
15 |
|
|
16 |
default:
|
|
0 |
#
|
|
1 |
# Ubuntu: https://bugs.launchpad.net/bugs/201495
|
|
2 |
# Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=541945
|
|
3 |
# Patch: http://bugzilla.gnome.org/attachment.cgi?id=114144&action=view
|
|
4 |
# Description: Parse passwd gecos field to ignore excess commas
|
|
5 |
#
|
|
6 |
Index: PolicyKit-gnome-0.9.2/src/polkit-gnome-auth-dialog.c
|
|
7 |
===================================================================
|
|
8 |
--- PolicyKit-gnome-0.9.2.orig/src/polkit-gnome-auth-dialog.c 2008-08-21 03:04:59.000000000 +0200
|
|
9 |
+++ PolicyKit-gnome-0.9.2/src/polkit-gnome-auth-dialog.c 2009-04-27 11:22:28.000000000 +0200
|
|
10 |
@@ -194,6 +194,7 @@
|
|
11 |
|
|
12 |
/* For each user */
|
|
13 |
for (n = 0; admin_users[n] != NULL; n++) {
|
|
14 |
+ char *gecos;
|
|
15 |
char *real_name;
|
|
16 |
GdkPixbuf *pixbuf;
|
|
17 |
struct passwd *passwd;
|
|
18 |
@@ -207,10 +208,17 @@
|
|
19 |
}
|
|
20 |
|
|
21 |
/* Real name */
|
|
22 |
- if (passwd->pw_gecos != NULL && strlen (passwd->pw_gecos) > 0)
|
|
23 |
- real_name = g_strdup_printf (_("%s (%s)"), passwd->pw_gecos, admin_users[n]);
|
|
24 |
+ gecos = g_strdup (passwd->pw_gecos);
|
|
25 |
+ if (gecos != NULL && strlen (gecos) > 0) {
|
|
26 |
+ char *first_comma = strchr (gecos, ',');
|
|
27 |
+ if (first_comma)
|
|
28 |
+ *first_comma = '\0';
|
|
29 |
+ }
|
|
30 |
+ if (gecos != NULL && strlen (gecos) > 0)
|
|
31 |
+ real_name = g_strdup_printf (_("%s (%s)"), gecos, admin_users[n]);
|
|
32 |
else
|
|
33 |
real_name = g_strdup (admin_users[n]);
|
|
34 |
+ g_free (gecos);
|
|
35 |
|
|
36 |
/* Load users face */
|
|
37 |
pixbuf = NULL;
|
0 | 0 |
02-desktop_file_categories.patch
|
|
1 |
05-fix-actions.patch
|
|
2 |
05-no-commas.patch
|