bool wxFontDialog::DoCreate(wxWindow *parent)
{
- parent = GetParentForModalDialog(parent);
+ parent = GetParentForModalDialog(parent, 0);
if (!PreCreation( parent, wxDefaultPosition, wxDefaultSize ) ||
!CreateBase( parent, -1, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE,
GtkFontSelectionDialog *sel = GTK_FONT_SELECTION_DIALOG(m_widget);
- g_signal_connect (sel->ok_button, "clicked",
+ g_signal_connect (gtk_font_selection_dialog_get_ok_button(sel), "clicked",
G_CALLBACK (gtk_fontdialog_ok_callback), this);
- g_signal_connect (sel->cancel_button, "clicked",
+ g_signal_connect (gtk_font_selection_dialog_get_cancel_button(sel), "clicked",
G_CALLBACK (gtk_fontdialog_cancel_callback), this);
g_signal_connect (m_widget, "delete_event",
else
{
// this is not supposed to happen!
- wxFAIL_MSG(_T("font is ok but no native font info?"));
+ wxFAIL_MSG(wxT("font is ok but no native font info?"));
}
}