[gnome-packagekit] Don't show a modal dialog when the user cancels the file install



commit b182db482e38fcac8e96f41730e9148787e209ce
Author: Richard Hughes <richard hughsie com>
Date:   Mon Aug 10 17:43:36 2009 +0100

    Don't show a modal dialog when the user cancels the file install

 src/gpk-dbus-task.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 7c53cd0..0caf6eb 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -1608,13 +1608,6 @@ gpk_dbus_task_install_package_files_verify (GpkDbusTask *task, GPtrArray *array,
 
 	/* did we click no or exit the window? */
 	if (button != GTK_RESPONSE_OK) {
-		/* TRANSLATORS: title: the user cancelled the action */
-		title = ngettext ("The file was not installed",
-				  "The files were not installed", array->len);
-		gpk_modal_dialog_setup (task->priv->dialog, GPK_MODAL_DIALOG_PAGE_WARNING, 0);
-		gpk_modal_dialog_set_title (task->priv->dialog, title);
-		gpk_modal_dialog_present_with_time (task->priv->dialog, task->priv->timestamp);
-		gpk_modal_dialog_run (task->priv->dialog);
 		*error = g_error_new (GPK_DBUS_ERROR, GPK_DBUS_ERROR_CANCELLED, "Aborted");
 		ret = FALSE;
 		goto out;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]