--- a/examples/logarithmic.c
+++ b/examples/logarithmic.c
@@ -52,7 +52,7 @@
    gfloat min_y, max_y;
    gfloat *X;
    gfloat *Y;
-   GdkColor color;
+   GdkRGBA color;
    gint i;
 
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
@@ -105,11 +105,13 @@
    }
 
    /* set the background */
-   color.red = 16383;
-   color.green = 16383;
-   color.blue = 16383;
-   for (i = 0; i < NO_BOXES; ++i)
-      gtk_widget_modify_bg (box[i], GTK_STATE_NORMAL, &color);
+   color.red = 0.33;
+   color.green = 0.33;
+   color.blue = 0.33;
+   color.alpha = 1;
+
+   for (i = 0; i < NO_BOXES; ++i)
+      gtk_widget_override_background_color (box[i], GTK_STATE_FLAG_NORMAL, &color);
 
    /* add a sinus^2 */
    X = g_new0 (gfloat, POINTS);
@@ -122,8 +124,9 @@
    }
 
    color.red = 0;
-   color.green = 65535;
+   color.green = 1;
    color.blue = 0;
+   color.alpha = 1;
 
    graph = gtk_databox_points_new (POINTS, X, Y, &color, 1);
    for (i = 0; i < NO_BOXES; ++i)
@@ -139,9 +142,10 @@
       Y[i] = exp (log (1000) * i / ((gfloat) POINTS));
    }
 
-   color.red = 65535;
+   color.red = 1;
    color.green = 0;
    color.blue = 0;
+   color.alpha = 1;
 
    graph = gtk_databox_points_new (POINTS, X, Y, &color, 1);
    for (i = 0; i < NO_BOXES; ++i)
@@ -157,9 +161,10 @@
       Y[i] = 1000. / (100. * (gfloat) i / POINTS);
    }
 
-   color.red = 65535;
+   color.red = 1;
    color.green = 0;
-   color.blue = 65535;
+   color.blue = 1;
+   color.alpha = 1;
 
    graph = gtk_databox_points_new (POINTS, X, Y, &color, 1);
    for (i = 0; i < NO_BOXES; ++i)
@@ -175,9 +180,10 @@
       Y[i] = 1000. * (gfloat) i / POINTS * (gfloat) i / POINTS;
    }
 
-   color.red = 65535;
-   color.green = 65535;
+   color.red = 1;
+   color.green = 1;
    color.blue = 0;
+   color.alpha = 1;
 
    graph = gtk_databox_points_new (POINTS, X, Y, &color, 1);
    for (i = 0; i < NO_BOXES; ++i)