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 --- libgtk_kylix/GTKForms.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgtk_kylix/GTKForms.pas') diff --git a/libgtk_kylix/GTKForms.pas b/libgtk_kylix/GTKForms.pas index ad623b3..e35357f 100644 --- a/libgtk_kylix/GTKForms.pas +++ b/libgtk_kylix/GTKForms.pas @@ -747,7 +747,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)); for i := 1 to NumMessageButtons do if TMessageButton(i - 1) in Buttons then gtk_dialog_add_button(PGtkDialog(Dialog), MessageButtonID[i], i); -- cgit v1.2.3