X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6dd7ed8d761b48e506762b7e4a4c9b9bf2d79b5..f5f172485bf36ac1025395efc8073c1592c30c08:/src/gtk/colordlg.cpp?ds=sidebyside diff --git a/src/gtk/colordlg.cpp b/src/gtk/colordlg.cpp index 07623444a3..8eaca8bc78 100644 --- a/src/gtk/colordlg.cpp +++ b/src/gtk/colordlg.cpp @@ -53,6 +53,8 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data) m_widget = gtk_color_selection_dialog_new(wxGTK_CONV(title)); #endif // wxUSE_LIBHILDON/!wxUSE_LIBHILDON + g_object_ref(m_widget); + if ( parentGTK ) { gtk_window_set_transient_for(GTK_WINDOW(m_widget), parentGTK); @@ -97,7 +99,7 @@ void wxColourDialog::ColourDataToDialog() #if wxUSE_LIBHILDON HildonColorSelector * const sel = HILDON_COLOR_SELECTOR(m_widget); - hildon_color_selector_set_color(sel, wx_const_cast(GdkColor *, col)); + hildon_color_selector_set_color(sel, const_cast(col)); #else // !wxUSE_LIBHILDON GtkColorSelection *sel = GTK_COLOR_SELECTION(GTK_COLOR_SELECTION_DIALOG(m_widget)->colorsel);