From fbb18efbc7042e4e6f82908c3d556cdfdf25f67f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 15 Nov 2010 23:41:13 -0500 Subject: Make build with GtkStyleContext Initial attempt to port from gtk_paint_ to gtk_render_ --- src/eog-print-preview.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eog-print-preview.c b/src/eog-print-preview.c index 608ed71d..eab96c7a 100644 --- a/src/eog-print-preview.c +++ b/src/eog-print-preview.c @@ -1049,9 +1049,9 @@ eog_print_preview_draw (EogPrintPreview *preview, cairo_t *cr) } if (has_focus) { - gtk_paint_focus (style, cr, - GTK_STATE_NORMAL, NULL, NULL, - 0, 0, allocation.width, allocation.height); + gtk_render_focus (gtk_widget_get_style_context (area), + cr, + 0, 0, allocation.width, allocation.height); } } -- cgit v1.2.1