[nautilus-actions] Fix error message to not embed markup
- From: Pierre Wieser <pwieser src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus-actions] Fix error message to not embed markup
- Date: Tue, 16 Jun 2009 14:03:09 -0400 (EDT)
commit a5fcf9e9c4b42165aaa386cfd6bf2183927b6e6c
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Jun 16 20:03:42 2009 +0200
Fix error message to not embed markup
ChangeLog | 5 ++++-
src/nact/nact-application.c | 10 ++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index dc99a77..ffcb644 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
2009-06-14 Pierre Wieser <pwieser trychlos org>
- * po/POTFILES.in: Add src/nact-nact-application.c.
+ * po/POTFILES.in: Add src/nact-application.c.
+
+ * src/nact/nact-application.c:
+ Fix error message to not embed markup.
2009-06-12 Pierre Wieser <pwieser trychlos org>
diff --git a/src/nact/nact-application.c b/src/nact/nact-application.c
index d9cd1bd..3eb7987 100644
--- a/src/nact/nact-application.c
+++ b/src/nact/nact-application.c
@@ -285,16 +285,22 @@ static void
warn_other_instance( NactApplication *application )
{
g_assert( NACT_IS_APPLICATION( application ));
+ gchar *msg;
+
+ msg = g_strdup_printf( "<b>%s</b>\n\n%s",
+ _( "Another instance of Nautilus Actions Configurator is already running." ),
+ _( "Please switch back to it." ));
GtkWidget *dialog = gtk_message_dialog_new_with_markup(
- NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK,
- _( "<b>Another instance of Nautilus Actions Configurator is already running.</b>\n\nPlease switch back to it." ));
+ NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_INFO, GTK_BUTTONS_OK, msg );
/* i18n: window title */
g_object_set( G_OBJECT( dialog ) , "title", _( "Nautilus Actions" ), NULL );
gtk_dialog_run( GTK_DIALOG( dialog ));
+
gtk_widget_destroy( dialog );
+ g_free( msg );
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]