X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b976323b04593bf2f642d8bdf36b39a346d840dc..6bdeda4785ad7313926a79d8c900ff8019d54f64:/src/gtk/colordlg.cpp diff --git a/src/gtk/colordlg.cpp b/src/gtk/colordlg.cpp index 4c14ef5dfc..b264c991ca 100644 --- a/src/gtk/colordlg.cpp +++ b/src/gtk/colordlg.cpp @@ -107,7 +107,7 @@ void wxColourDialog::ColourDataToDialog() wxGtkString pal(gtk_color_selection_palette_to_string(colors, n_colors)); GtkSettings *settings = gtk_widget_get_settings(GTK_WIDGET(sel)); - g_object_set(settings, "gtk-color-palette", pal, NULL); + g_object_set(settings, "gtk-color-palette", pal.c_str(), NULL); } void wxColourDialog::DialogToColourData()