[Xfce4-commits] [apps/xfce4-screenshooter] 05/05: Error dialog now supports markup.
noreply at xfce.org
noreply at xfce.org
Mon May 5 17:15:27 CEST 2014
This is an automated email from the git hooks/post-receive script.
jeromeg pushed a commit to branch master
in repository apps/xfce4-screenshooter.
commit 655152d6b1e78bcbf583f4d13a641911f849da9e
Author: Steve Dodier-Lazaro <s.dodier-lazaro at cs.ucl.ac.uk>
Date: Mon May 5 17:09:14 2014 +0200
Error dialog now supports markup.
Use this to improve the error message when an application cannot be launched.
---
lib/screenshooter-utils.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/screenshooter-utils.c b/lib/screenshooter-utils.c
index 6cdf2a6..96f6bb8 100644
--- a/lib/screenshooter-utils.c
+++ b/lib/screenshooter-utils.c
@@ -180,7 +180,7 @@ screenshooter_open_screenshot (const gchar *screenshot_path, const gchar *applic
{
TRACE ("An error occured");
- screenshooter_error ("%s", error->message);
+ screenshooter_error (_("<b>The application could not be launched.</b>\n%s"), error->message);
g_error_free (error);
}
@@ -271,7 +271,8 @@ void screenshooter_error (const gchar *format, ...)
dialog =
gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR,
- GTK_BUTTONS_OK, "%s", message);
+ GTK_BUTTONS_OK, "");
+ gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog), message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list