From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Tue, 21 Mar 2006 13:33:08 +0000 (+0000)
Subject: can't pass objects through ... (please don't ever ignore this gcc warning)
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ed97f493ab59a3fc510b50bad9e1cc8648fc490f?ds=inline

can't pass objects through ... (please don't ever ignore this gcc warning)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

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()