Commit 0cc1279c authored by Bastien Nocera's avatar Bastien Nocera

Fix compilation of GTK+ theme engine for GTK+ 3.0

->draw_string() has been removed in GTK+ 3.x.
parent 9a7292da
......@@ -583,6 +583,7 @@ draw_diamond (GtkStyle *style,
x, y, width, height);
}
#if ! (GTK_CHECK_VERSION(2,90,0))
static void
draw_string (GtkStyle * style,
GdkWindow * window,
......@@ -624,6 +625,7 @@ draw_string (GtkStyle * style,
gdk_gc_set_clip_rectangle(style->fg_gc[state], NULL);
}
}
#endif /* ! (GTK_CHECK_VERSION(2,90,0)) */
static void
draw_box (GtkStyle *style,
......@@ -1024,7 +1026,9 @@ rsvg_style_class_init (RsvgStyleClass *klass)
style_class->draw_shadow = draw_shadow;
style_class->draw_arrow = draw_arrow;
style_class->draw_diamond = draw_diamond;
#if ! (GTK_CHECK_VERSION(2,90,0))
style_class->draw_string = draw_string;
#endif
style_class->draw_box = draw_box;
style_class->draw_flat_box = draw_flat_box;
style_class->draw_check = draw_check;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment