summaryrefslogtreecommitdiff
path: root/docs/faq
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-05-25 20:38:43 +0200
committerJavier Jardón <jjardon@gnome.org>2010-06-07 00:35:40 +0200
commit2ace397eb52df6627bbcd8caef40a7dab82618f8 (patch)
tree85d1ce9f1f6acf3dfb3c600cd1d455440550bfb4 /docs/faq
parenta18f23c478ec157b89f339caca55c0ef98b02bed (diff)
downloadgtk+-2ace397eb52df6627bbcd8caef40a7dab82618f8.tar.gz
Remove deprecatedd code from GdkColor
https://bugzilla.gnome.org/show_bug.cgi?id=619649
Diffstat (limited to 'docs/faq')
-rw-r--r--docs/faq/gtk-faq.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/faq/gtk-faq.sgml b/docs/faq/gtk-faq.sgml
index 0da5e48e65..fddc74e858 100644
--- a/docs/faq/gtk-faq.sgml
+++ b/docs/faq/gtk-faq.sgml
@@ -3124,7 +3124,7 @@ like this:</para>
* displays. Therefore, this call is required so that GDK and X can
* give us the closest color available in the colormap
*/
- gdk_color_alloc(gtk_widget_get_colormap(widget), color);
+ gdk_colormap_alloc_color(gtk_widget_get_colormap(widget), color, FALSE, TRUE);
/* set the foreground to our color */
gdk_gc_set_foreground(gc, color);