[grisbi-cvs] grisbi/src/plugins/openssl openssl.c,1.19,1.20

Pierre Biava pbiava at users.sourceforge.net
Sun Oct 4 00:14:58 CEST 2009


Update of /cvsroot/grisbi/grisbi/src/plugins/openssl
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18071/src/plugins/openssl

Modified Files:
	openssl.c 
Log Message:
escape the string for gtk_label_set_markup with g_markup_escape_text() or g_markup_printf_escaped() and minor corrections

Index: openssl.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/plugins/openssl/openssl.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- openssl.c	2 Oct 2009 21:35:04 -0000	1.19
+++ openssl.c	3 Oct 2009 22:14:56 -0000	1.20
@@ -239,12 +239,16 @@
 
     if ( encrypt )
 	gtk_label_set_markup ( GTK_LABEL (label),
-			       g_strdup_printf ( _( "%sPlease enter password to encrypt file\n'<span foreground=\"blue\">%s</span>'" ),
-						 additional_message, file_name ) );
+			       g_markup_printf_escaped (
+                    _( "%sPlease enter password to encrypt file\n'<span "
+                    "foreground=\"blue\">%s</span>'" ),
+                    additional_message, file_name ) );
     else
 	gtk_label_set_markup ( GTK_LABEL (label),
-			       g_strdup_printf ( _( "%sPlease enter password to decrypt file\n'<span foreground=\"blue\">%s</span>'" ),
-						 additional_message, file_name ) );
+			       g_markup_printf_escaped (
+                    _( "%sPlease enter password to decrypt file\n'<span "
+                    "foreground=\"blue\">%s</span>'" ),
+                    additional_message, file_name ) );
     gtk_box_pack_start ( GTK_BOX ( vbox ), label, FALSE, FALSE, 6 );
 
     hbox2 = gtk_hbox_new ( FALSE, 6 );



More information about the cvs mailing list