1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../gnomesu/password-label.patch
5 # Copyright (C) 2007 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
25 GtkWidget* gtk_xsu_window;
27 gchar* arg_username=NULL;
28 + gchar* arg_message_password=NULL;
30 gboolean command_in=FALSE;
31 gboolean username_in=FALSE;
37 + if (!strcmp (argv[x], "--message-password"))
39 + if (argv[x+1] != NULL)
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';
51 Option to load another icon
55 gtk_label_set_markup(GTK_LABEL(gtk_text_label),arg_message);
58 + if (arg_message_password)
60 + gtk_label_set_markup(GTK_LABEL(glade_xml_get_widget (xml, "gtk_password_label")),arg_message_password);