]> spindle.queued.net Git - midori/commitdiff
Use the colormap of the widget with KatzeScrolled
authorChristian Dywan <christian@twotoasts.de>
Sun, 31 Jan 2010 19:39:28 +0000 (20:39 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 31 Jan 2010 19:41:30 +0000 (20:41 +0100)
katze/katze-scrolled.c

index 87473d3651c5e2dec05021973f4f0df27f4ff359..619e4b7a27249f6175e0d54bd1b2ebea30def2f2 100644 (file)
@@ -878,7 +878,7 @@ katze_scrolled_realize (GtkWidget* widget)
                       G_CALLBACK (on_expose_event), scrolled);
 
     color.red = color.green = color.blue = 0x9999;
-    gdk_rgb_find_color (gdk_colormap_get_system (), &color);
+    gdk_rgb_find_color (gtk_widget_get_colormap (widget), &color);
     gdk_window_set_background (priv->vertical_scrollbar_window, &color);
     gdk_window_set_background (priv->horizontal_scrollbar_window, &color);