From 0b6ab870592194e67dff5cba013d9d32acdf2d48 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Tue, 1 Dec 2009 22:37:25 +0100 Subject: A better way to escape format string --- UGnome.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'UGnome.pas') diff --git a/UGnome.pas b/UGnome.pas index c0f93b1..adc2fc1 100644 --- a/UGnome.pas +++ b/UGnome.pas @@ -1210,7 +1210,7 @@ begin Exit; end; Dialog := gtk_message_dialog_new(ParentWindow, GTK_DIALOG_MODAL or GTK_DIALOG_DESTROY_WITH_PARENT, TMessageStyleID[Integer(Style)], - GTK_BUTTONS_NONE, StringToPgchar(EscapeFormatStr(Text))); + GTK_BUTTONS_NONE, '%s', StringToPgchar(Text)); CheckBox := PGtkCheckButton(gtk_check_button_new_with_mnemonic(StringToPgchar(DontShowAgainText))); gtk_widget_show(PGtkWidget(CheckBox)); gtk_box_pack_end(GTK_BOX(GTK_DIALOG(Dialog).vbox), PGtkWidget(CheckBox), False, False, 12); -- cgit v1.2.3