* updated libkomparediff2 (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / gnome / gnomesu / password-label.patch
blob5d433fdca7e96d9dcd1facba6e6753a195c95954
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../gnomesu/password-label.patch
5 # Copyright (C) 2007 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Although we could have internationalized the file, specifing the only other
18 visible label comes handy as well.
20 - Rene Rebe <rene@exactcode.de>
22 --- gnomesu-0.3.1/src/xsu.c.vanilla 2007-08-27 19:05:56.000000000 +0200
23 +++ gnomesu-0.3.1/src/xsu.c 2007-08-27 19:19:24.000000000 +0200
24 @@ -296,6 +296,7 @@
25 GtkWidget* gtk_xsu_window;
26 gchar* arg_command;
27 gchar* arg_username=NULL;
28 + gchar* arg_message_password=NULL;
29 gint x;
30 gboolean command_in=FALSE;
31 gboolean username_in=FALSE;
32 @@ -407,6 +408,20 @@
33 message_in=TRUE;
37 + if (!strcmp (argv[x], "--message-password"))
38 + {
39 + if (argv[x+1] != NULL)
40 + {
41 + int i;
42 + arg_message_password = g_strdup(argv[x+1]);
43 + for (i=0;i<strlen(arg_message_password);++i)
44 + if (arg_message_password[i]=='^') arg_message_password[i]='\n';
45 + for (i=0;i<strlen(arg_message_password);++i)
46 + if (arg_message_password[i]=='~') arg_message_password[i]='\t';
47 + }
48 + }
50 /* xsu 0.1.5 *
51 Option to load another icon
53 @@ -544,6 +559,11 @@
55 gtk_label_set_markup(GTK_LABEL(gtk_text_label),arg_message);
58 + if (arg_message_password)
59 + {
60 + gtk_label_set_markup(GTK_LABEL(glade_xml_get_widget (xml, "gtk_password_label")),arg_message_password);
61 + }
63 if (command_in)