seahorse r2794 - in trunk: . gkr
- From: nnielsen svn gnome org
- To: svn-commits-list gnome org
- Subject: seahorse r2794 - in trunk: . gkr
- Date: Fri, 13 Feb 2009 18:48:22 +0000 (UTC)
Author: nnielsen
Date: Fri Feb 13 18:48:21 2009
New Revision: 2794
URL: http://svn.gnome.org/viewvc/seahorse?rev=2794&view=rev
Log:
Prompt before deleting a keyring.
Modified:
trunk/ChangeLog
trunk/gkr/seahorse-gkr-keyring-commands.c
Modified: trunk/gkr/seahorse-gkr-keyring-commands.c
==============================================================================
--- trunk/gkr/seahorse-gkr-keyring-commands.c (original)
+++ trunk/gkr/seahorse-gkr-keyring-commands.c Fri Feb 13 18:48:21 2009
@@ -312,6 +312,7 @@
static SeahorseOperation*
seahorse_gkr_keyring_commands_delete_objects (SeahorseCommands* base, GList* objects)
{
+ SeahorseOperation *oper = NULL;
gchar *prompt;
if (!objects)
@@ -320,7 +321,12 @@
prompt = g_strdup_printf (_ ("Are you sure you want to delete the password keyring '%s'?"),
seahorse_object_get_label (objects->data));
- return seahorse_object_delete (objects->data);
+ if (seahorse_util_prompt_delete (prompt, GTK_WIDGET (seahorse_commands_get_window (base))))
+ oper = seahorse_object_delete (objects->data);
+
+ g_free (prompt);
+
+ return oper;
}
static GObject*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]