summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-08-28 22:27:07 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-08-29 11:20:57 -0400
commit1a14b6f7c315b948d009f9b58cf7185b68de31fc (patch)
tree13563aec7f743c7a2347c2fe4a77bf5498d476e8
parent3fc619cd324fec7cbbbd8cd073a93ff939f3b459 (diff)
downloadgtk+-wip/matthiasc/visible-focus.tar.gz
Always draw outlinewip/matthiasc/visible-focus
We can now control with CSS where there the outline is drawn.
-rw-r--r--gtk/gtkwidget.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 2e8b4cdfef..5ea11c8780 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -15197,15 +15197,12 @@ gtk_widget_snapshot (GtkWidget *widget,
cairo_destroy (cr);
}
- if (gtk_widget_has_visible_focus (widget))
- {
- gtk_snapshot_offset (snapshot, margin.left, margin.top);
- gtk_css_style_snapshot_outline (style,
- snapshot,
- allocation.width - margin.left - margin.right,
- allocation.height - margin.top - margin.bottom);
- gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
- }
+ gtk_snapshot_offset (snapshot, margin.left, margin.top);
+ gtk_css_style_snapshot_outline (style,
+ snapshot,
+ allocation.width - margin.left - margin.right,
+ allocation.height - margin.top - margin.bottom);
+ gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
if (opacity < 1.0)
gtk_snapshot_pop (snapshot);