[gthumb] GthEmptyList: render the text following the widget state



commit 4907cf3fb72daef67d629692d86ffdf71333f118
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Apr 30 20:13:18 2013 +0200

    GthEmptyList: render the text following the widget state

 gthumb/gth-empty-list.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-empty-list.c b/gthumb/gth-empty-list.c
index f2a8a3b..dfdc3a2 100644
--- a/gthumb/gth-empty-list.c
+++ b/gthumb/gth-empty-list.c
@@ -235,8 +235,7 @@ gth_empty_list_draw (GtkWidget *widget,
                pango_layout_set_font_description (self->priv->layout, gtk_style_context_get_font 
(style_context, gtk_widget_get_state (widget)));
                gtk_style_context_get_color (style_context, gtk_widget_get_state (widget), &color);
                gdk_cairo_set_source_rgba (cr, &color);
-               cairo_move_to (cr, 0, (allocation.height - bounds.height) / 2);
-               pango_cairo_layout_path (cr, self->priv->layout);
+               gtk_render_layout (style_context, cr, 0, (allocation.height - bounds.height) / 2, 
self->priv->layout);
                cairo_fill (cr);
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]