Use wxGtkString here too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp 2006-03-21 09:24:47 +00:00
parent 577579933d
commit b976323b04

View File

@ -104,12 +104,10 @@ void wxColourDialog::ColourDataToDialog()
}
}
gchar *pal = gtk_color_selection_palette_to_string(colors, n_colors);
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_free(pal);
}
void wxColourDialog::DialogToColourData()