X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b6dd7ed8d761b48e506762b7e4a4c9b9bf2d79b5..57bf907d8e45ced18486d74c04f41c06034b7e65:/src/gtk/colordlg.cpp 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);