summaryrefslogtreecommitdiff
path: root/src/eom-print-preview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-print-preview.c')
-rw-r--r--src/eom-print-preview.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eom-print-preview.c b/src/eom-print-preview.c
index 8b6f154..0e85ae6 100644
--- a/src/eom-print-preview.c
+++ b/src/eom-print-preview.c
@@ -1053,9 +1053,15 @@ eom_print_preview_draw (EomPrintPreview *preview, cairo_t *cr)
}
if (has_focus) {
+ #if GTK_CHECK_VERSION(3, 0, 0)
+ gtk_paint_focus (style, cr,
+ GTK_STATE_NORMAL, NULL, NULL,
+ 0, 0, allocation.width, allocation.height);
+ #else
gtk_paint_focus (style, gtk_widget_get_window (area),
GTK_STATE_NORMAL, NULL, NULL, NULL,
0, 0, allocation.width, allocation.height);
+ #endif
}
}