[librsvg] Remove deprecated GTK symbol - bug #572084
- From: Andre Klapper <aklapper src gnome org>
- To: svn-commits-list gnome org
- Subject: [librsvg] Remove deprecated GTK symbol - bug #572084
- Date: Sat, 18 Jul 2009 13:11:43 +0000 (UTC)
commit 248b73101710f01711d4da885fb907082a4709e5
Author: Javier Jardón <javierjc1982 gmail com>
Date: Sat Jul 18 15:11:17 2009 +0200
Remove deprecated GTK symbol - bug #572084
gtk-engine/svg-draw.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk-engine/svg-draw.c b/gtk-engine/svg-draw.c
index 63bcc64..e30b05c 100644
--- a/gtk-engine/svg-draw.c
+++ b/gtk-engine/svg-draw.c
@@ -594,9 +594,13 @@ draw_string (GtkStyle * style,
gint y,
const gchar * string)
{
+ PangoLayout *layout = NULL;
+
g_return_if_fail(style != NULL);
g_return_if_fail(window != NULL);
+ layout = gtk_widget_create_pango_layout (widget, string);
+
if (state == GTK_STATE_INSENSITIVE)
{
if (area)
@@ -605,7 +609,7 @@ draw_string (GtkStyle * style,
gdk_gc_set_clip_rectangle(style->fg_gc[state], area);
}
- gdk_draw_string(window, gtk_style_get_font (style), style->fg_gc[state], x, y, string);
+ gdk_draw_layout(GTK_DRAWABLE (window), style->fg_gc[state], x, y, layout);
if (area)
{
@@ -616,7 +620,7 @@ draw_string (GtkStyle * style,
else
{
gdk_gc_set_clip_rectangle(style->fg_gc[state], area);
- gdk_draw_string(window, gtk_style_get_font (style), style->fg_gc[state], x, y, string);
+ gdk_draw_layout(GTK_DRAWABLE (window), style->fg_gc[state], x, y, layout);
gdk_gc_set_clip_rectangle(style->fg_gc[state], NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]