+#if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
+ const GdkColor * const
+ col = m_data.GetColour().IsOk() ? m_data.GetColour().GetColor()
+ : NULL;
+#endif
+#if wxUSE_LIBHILDON
+ HildonColorSelector * const sel = HILDON_COLOR_SELECTOR(m_widget);
+ hildon_color_selector_set_color(sel, const_cast<GdkColor *>(col));
+#elif wxUSE_LIBHILDON2
+ GdkColor clr;
+ if (col)
+ clr = *col;
+ else {
+ clr.pixel = 0;
+ clr.red = 32768;
+ clr.green = 32768;
+ clr.blue = 32768;
+ }
+
+ hildon_color_chooser_dialog_set_color((HildonColorChooserDialog *)m_widget, &clr);
+#else // !wxUSE_LIBHILDON2/!wxUSE_LIBHILDON && !wxUSE_LIBHILDON2
+ GtkColorSelection* sel = GTK_COLOR_SELECTION(
+ gtk_color_selection_dialog_get_color_selection(
+ GTK_COLOR_SELECTION_DIALOG(m_widget)));