[eog/gtk-style-context] Make build with GtkStyleContext
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/gtk-style-context] Make build with GtkStyleContext
- Date: Tue, 16 Nov 2010 04:42:14 +0000 (UTC)
commit fbb18efbc7042e4e6f82908c3d556cdfdf25f67f
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 15 23:41:13 2010 -0500
Make build with GtkStyleContext
Initial attempt to port from gtk_paint_ to gtk_render_
src/eog-print-preview.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-print-preview.c b/src/eog-print-preview.c
index 608ed71..eab96c7 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]