mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 20:36:09 +02:00
Gtk2: don't parse printf params in dialogs text,use markup.Fixes issue #18313
git-svn-id: trunk@28823 -
This commit is contained in:
parent
12a532c6a2
commit
66febb954f
@ -982,7 +982,9 @@ begin
|
||||
|
||||
|
||||
Dialog := gtk_message_dialog_new(nil, GTK_DIALOG_MODAL, GtkDialogType, Btns,
|
||||
PGChar(DialogMessage));
|
||||
nil);
|
||||
|
||||
gtk_message_dialog_set_markup(PGtkMessageDialog(Dialog), PGChar(DialogMessage));
|
||||
|
||||
g_signal_connect(PGtkObject(Dialog), 'delete-event',
|
||||
TGtkSignalFunc(@PromptUserBoxClosed),
|
||||
@ -1140,11 +1142,10 @@ begin
|
||||
if X = DefaultIndex then
|
||||
DefaultID := Buttons[X];
|
||||
end;
|
||||
|
||||
|
||||
Dialog := gtk_message_dialog_new(nil, GTK_DIALOG_MODAL, GtkDialogType, Btns,
|
||||
PGChar(DialogMessage));
|
||||
nil);
|
||||
|
||||
gtk_message_dialog_set_markup(PGtkMessageDialog(Dialog), PGChar(DialogMessage));
|
||||
g_signal_connect(PGtkObject(Dialog), 'delete-event',
|
||||
TGtkSignalFunc(@PromptUserBoxClosed),
|
||||
@ADialogResult);
|
||||
|
Loading…
Reference in New Issue
Block a user