mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 03:32:45 +02:00
Gtk2: fixed compilation under win32. issue #20829
git-svn-id: trunk@34023 -
This commit is contained in:
parent
68d181cd00
commit
dc375221d6
@ -987,7 +987,8 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
Dialog := gtk_message_dialog_new(PGtkWindow(GetDesktopWidget), GTK_DIALOG_MODAL, GtkDialogType, Btns,
|
||||
Dialog := gtk_message_dialog_new({$IFDEF HASX}PGtkWindow(GetDesktopWidget){$ELSE}nil{$ENDIF},
|
||||
GTK_DIALOG_MODAL, GtkDialogType, Btns,
|
||||
nil);
|
||||
|
||||
gtk_message_dialog_set_markup(PGtkMessageDialog(Dialog), PGChar(DialogMessage));
|
||||
@ -1150,7 +1151,8 @@ begin
|
||||
DefaultID := Buttons[X];
|
||||
end;
|
||||
|
||||
Dialog := gtk_message_dialog_new(PGtkWindow(GetDesktopWidget), GTK_DIALOG_MODAL, GtkDialogType, Btns,
|
||||
Dialog := gtk_message_dialog_new({$IFDEF HASX}PGtkWindow(GetDesktopWidget){$ELSE}nil{$ENDIF},
|
||||
GTK_DIALOG_MODAL, GtkDialogType, Btns,
|
||||
nil);
|
||||
|
||||
// Can't pass message string to gtk_message_dialog_new, as % chars are interpreted
|
||||
|
Loading…
Reference in New Issue
Block a user