[eog] EogPrintPreview: Draw focus rectangle around image and not the page
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogPrintPreview: Draw focus rectangle around image and not the page
- Date: Wed, 15 Feb 2012 14:16:40 +0000 (UTC)
commit 076cb1b19e5c00203b3475bf6e79f42ff3aa6ba4
Author: Felix Riemann <friemann gnome org>
Date: Wed Feb 15 15:14:48 2012 +0100
EogPrintPreview: Draw focus rectangle around image and not the page
Besides making the focus rectangle slightly visible again it also makes
more sense this way as the user is interacting with the image on the
page and not the whole page itself.
src/eog-print-preview.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-print-preview.c b/src/eog-print-preview.c
index 5d33625..f299b86 100644
--- a/src/eog-print-preview.c
+++ b/src/eog-print-preview.c
@@ -1071,8 +1071,8 @@ eog_print_preview_draw (EogPrintPreview *preview, cairo_t *cr)
GtkStyleContext *ctx;
ctx = gtk_widget_get_style_context (area);
- gtk_render_focus (ctx, cr, 0, 0,
- allocation.width, allocation.height);
+ gtk_render_focus (ctx, cr, x0, y0,
+ priv->r_width, priv->r_height);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]