summaryrefslogtreecommitdiff
path: root/gtk/plotters.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-03-26 20:56:59 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-03-26 20:56:59 +0000
commite7f9e93cc6520a84016c13549f23710782db8b0b (patch)
tree750f49f21ccc9743add7ccbb92c12a2137609fe4 /gtk/plotters.c
parentf832eea7fa7a7e146b2cd2e36a2d97f8bc0a38a3 (diff)
downloadnetsurf-e7f9e93cc6520a84016c13549f23710782db8b0b.tar.gz
netsurf-e7f9e93cc6520a84016c13549f23710782db8b0b.tar.bz2
make teh GTK frontend build on -DG_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -DPANGO_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGTK_MULTIHEAD_SAFE
svn path=/trunk/netsurf/; revision=12138
Diffstat (limited to 'gtk/plotters.c')
-rw-r--r--gtk/plotters.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/plotters.c b/gtk/plotters.c
index 25c5dff90..0041b728c 100644
--- a/gtk/plotters.c
+++ b/gtk/plotters.c
@@ -69,8 +69,7 @@ void nsgtk_set_colour(colour c)
colour.blue = b | (b << 8);
colour.pixel = (r << 16) | (g << 8) | b;
- gdk_color_alloc(gdk_colormap_get_system(),
- &colour);
+ gdk_colormap_alloc_color(gdk_colormap_get_system(), &colour, true, true);
gdk_gc_set_foreground(current_gc, &colour);
cairo_set_source_rgba(current_cr, r / 255.0,
@@ -89,8 +88,8 @@ void nsgtk_plot_caret(int x, int y, int h)
colour.green = 0;
colour.blue = 0;
colour.pixel = 0;
- gdk_color_alloc(gdk_colormap_get_system(),
- &colour);
+ gdk_colormap_alloc_color(gdk_colormap_get_system(),
+ &colour, true, true);
gdk_gc_set_foreground(current_gc, &colour);
gdk_draw_line(current_drawable, current_gc,