[gnome-packagekit] Pop up a modal dialog if any of the methods in gpk-install-foo fail. Fixes rh#500237
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Pop up a modal dialog if any of the methods in gpk-install-foo fail. Fixes rh#500237
- Date: Wed, 13 May 2009 03:52:37 -0400 (EDT)
commit 255bc16adabce0bc74ec1802036b79ec2cf2a1bc
Author: Richard Hughes <richard hughsie com>
Date: Wed May 13 08:51:29 2009 +0100
Pop up a modal dialog if any of the methods in gpk-install-foo fail. Fixes rh#500237
I agree, hiding the error behind a --verbose switch is bad form.
---
src/gpk-install-catalog.c | 5 +++++
src/gpk-install-local-file.c | 5 +++++
src/gpk-install-mime-type.c | 5 +++++
src/gpk-install-package-name.c | 5 +++++
src/gpk-install-provide-file.c | 5 +++++
5 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/src/gpk-install-catalog.c b/src/gpk-install-catalog.c
index 6484955..aca6e76 100644
--- a/src/gpk-install-catalog.c
+++ b/src/gpk-install-catalog.c
@@ -118,6 +118,11 @@ main (int argc, char *argv[])
G_TYPE_INVALID,
G_TYPE_INVALID);
if (!ret) {
+ /* TRANSLATORS: This is when the specified DBus method did not execute successfully */
+ gpk_error_dialog (_("The action could not be completed"),
+ /* TRANSLATORS: we don't have anything more useful to translate. sorry. */
+ _("The request failed. More details are available in the detailed report."),
+ error->message);
egg_warning ("%s", error->message);
g_error_free (error);
goto out;
diff --git a/src/gpk-install-local-file.c b/src/gpk-install-local-file.c
index 9b62591..465ebbd 100644
--- a/src/gpk-install-local-file.c
+++ b/src/gpk-install-local-file.c
@@ -118,6 +118,11 @@ main (int argc, char *argv[])
G_TYPE_INVALID,
G_TYPE_INVALID);
if (!ret) {
+ /* TRANSLATORS: This is when the specified DBus method did not execute successfully */
+ gpk_error_dialog (_("The action could not be completed"),
+ /* TRANSLATORS: we don't have anything more useful to translate. sorry. */
+ _("The request failed. More details are available in the detailed report."),
+ error->message);
egg_warning ("%s", error->message);
g_error_free (error);
goto out;
diff --git a/src/gpk-install-mime-type.c b/src/gpk-install-mime-type.c
index d0b275c..535fda6 100644
--- a/src/gpk-install-mime-type.c
+++ b/src/gpk-install-mime-type.c
@@ -118,6 +118,11 @@ main (int argc, char *argv[])
G_TYPE_INVALID,
G_TYPE_INVALID);
if (!ret) {
+ /* TRANSLATORS: This is when the specified DBus method did not execute successfully */
+ gpk_error_dialog (_("The action could not be completed"),
+ /* TRANSLATORS: we don't have anything more useful to translate. sorry. */
+ _("The request failed. More details are available in the detailed report."),
+ error->message);
egg_warning ("%s", error->message);
g_error_free (error);
goto out;
diff --git a/src/gpk-install-package-name.c b/src/gpk-install-package-name.c
index 5c1364c..2a80303 100644
--- a/src/gpk-install-package-name.c
+++ b/src/gpk-install-package-name.c
@@ -117,6 +117,11 @@ main (int argc, char *argv[])
G_TYPE_INVALID,
G_TYPE_INVALID);
if (!ret) {
+ /* TRANSLATORS: This is when the specified DBus method did not execute successfully */
+ gpk_error_dialog (_("The action could not be completed"),
+ /* TRANSLATORS: we don't have anything more useful to translate. sorry. */
+ _("The request failed. More details are available in the detailed report."),
+ error->message);
egg_warning ("%s", error->message);
g_error_free (error);
goto out;
diff --git a/src/gpk-install-provide-file.c b/src/gpk-install-provide-file.c
index 218d451..98c62a1 100644
--- a/src/gpk-install-provide-file.c
+++ b/src/gpk-install-provide-file.c
@@ -118,6 +118,11 @@ main (int argc, char *argv[])
G_TYPE_INVALID,
G_TYPE_INVALID);
if (!ret) {
+ /* TRANSLATORS: This is when the specified DBus method did not execute successfully */
+ gpk_error_dialog (_("The action could not be completed"),
+ /* TRANSLATORS: we don't have anything more useful to translate. sorry. */
+ _("The request failed. More details are available in the detailed report."),
+ error->message);
egg_warning ("%s", error->message);
g_error_free (error);
goto out;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]