]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix: wxColour::GetColor() returns const object
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 1 Jun 2007 21:21:01 +0000 (21:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 1 Jun 2007 21:21:01 +0000 (21:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dataview.cpp

index 2d3b5bb7fe145696475fb5fcfef427e9246cba1b..46bea947cca5a2857d4aa697ffcd61fd38051dd6 100644 (file)
@@ -1656,7 +1656,7 @@ static void wxGtkTreeCellDataFunc( GtkTreeViewColumn *column,
     if (attr.HasBackgroundColour())
     {
         wxColour colour = attr.GetBackgroundColour();
-        GdkColor *gcol = colour.GetColor();
+        const GdkColor * const gcol = colour.GetColor();
 
         GValue gvalue = { 0, };
         g_value_init( &gvalue, GDK_TYPE_COLOR );