seahorse r2580 - in trunk: . gkr
- From: sadam svn gnome org
- To: svn-commits-list gnome org
- Subject: seahorse r2580 - in trunk: . gkr
- Date: Sun, 12 Oct 2008 03:10:13 +0000 (UTC)
Author: sadam
Date: Sun Oct 12 03:10:13 2008
New Revision: 2580
URL: http://svn.gnome.org/viewvc/seahorse?rev=2580&view=rev
Log:
2008-10-11 Adam Schreiber <sadam clemson edu>
* * gkr/seahorse-gkr-commands.c:
* gkr/seahorse-gkr-commands.vala:
* gkr/vala-build.stamp: Revert 2574
Modified:
trunk/ChangeLog
trunk/gkr/seahorse-gkr-commands.c
trunk/gkr/seahorse-gkr-commands.vala
trunk/gkr/vala-build.stamp
Modified: trunk/gkr/seahorse-gkr-commands.c
==============================================================================
--- trunk/gkr/seahorse-gkr-commands.c (original)
+++ trunk/gkr/seahorse-gkr-commands.c Sun Oct 12 03:10:13 2008
@@ -63,8 +63,7 @@
SeahorseGKeyringCommands * self;
guint num;
char* prompt;
- char* _tmp1;
- SeahorseOperation* _tmp3;
+ SeahorseOperation* _tmp4;
self = SEAHORSE_GKEYRING_COMMANDS (base);
g_return_val_if_fail (keys != NULL, NULL);
num = g_list_length (keys);
@@ -72,15 +71,22 @@
return NULL;
}
prompt = NULL;
- _tmp1 = NULL;
- prompt = (_tmp1 = g_strdup_printf (ngettext ("Are you sure you want to delete the password '%s'?", "Are you sure you want to delete %d passwords?", ((gint) (num))), num), (prompt = (g_free (prompt), NULL)), _tmp1);
- if (!seahorse_util_prompt_delete (prompt, GTK_WIDGET (seahorse_view_get_window (seahorse_commands_get_view (SEAHORSE_COMMANDS (self)))))) {
- SeahorseOperation* _tmp2;
+ if (num == 1) {
+ char* _tmp1;
+ _tmp1 = NULL;
+ prompt = (_tmp1 = g_strdup_printf (_ ("Are you sure you want to delete the password '%s'?"), seahorse_object_get_display_name (((SeahorseObject*) (((SeahorseObject*) (keys->data)))))), (prompt = (g_free (prompt), NULL)), _tmp1);
+ } else {
+ char* _tmp2;
_tmp2 = NULL;
- return (_tmp2 = NULL, (prompt = (g_free (prompt), NULL)), _tmp2);
+ prompt = (_tmp2 = g_strdup_printf (_ ("Are you sure you want to delete %d passwords?"), num), (prompt = (g_free (prompt), NULL)), _tmp2);
+ }
+ if (!seahorse_util_prompt_delete (prompt, GTK_WIDGET (seahorse_view_get_window (seahorse_commands_get_view (SEAHORSE_COMMANDS (self)))))) {
+ SeahorseOperation* _tmp3;
+ _tmp3 = NULL;
+ return (_tmp3 = NULL, (prompt = (g_free (prompt), NULL)), _tmp3);
}
- _tmp3 = NULL;
- return (_tmp3 = seahorse_source_delete_objects (keys), (prompt = (g_free (prompt), NULL)), _tmp3);
+ _tmp4 = NULL;
+ return (_tmp4 = seahorse_source_delete_objects (keys), (prompt = (g_free (prompt), NULL)), _tmp4);
}
Modified: trunk/gkr/seahorse-gkr-commands.vala
==============================================================================
--- trunk/gkr/seahorse-gkr-commands.vala (original)
+++ trunk/gkr/seahorse-gkr-commands.vala Sun Oct 12 03:10:13 2008
@@ -60,8 +60,11 @@
string prompt;
- prompt = Bugs.ngettext ("Are you sure you want to delete the password '%s'?",
- "Are you sure you want to delete %d passwords?", (int) num).printf (num);
+ if (num == 1)
+ prompt = _("Are you sure you want to delete the password '%s'?").printf(keys.data.display_name);
+ else
+ prompt = _("Are you sure you want to delete %d passwords?").printf(num);
+
if (!Util.prompt_delete (prompt, view.window))
return null;
Modified: trunk/gkr/vala-build.stamp
==============================================================================
--- trunk/gkr/vala-build.stamp (original)
+++ trunk/gkr/vala-build.stamp Sun Oct 12 03:10:13 2008
@@ -1 +1 @@
-1223758482
+1223780946
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]