widget: Draw focus outline
This commit is contained in:
committed by
Matthias Clasen
parent
2b5458ccfa
commit
442d084a2a
@@ -15415,6 +15415,16 @@ gtk_widget_snapshot (GtkWidget *widget,
|
||||
gtk_snapshot_pop (snapshot);
|
||||
}
|
||||
|
||||
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_css_filter_value_pop_snapshot (filter_value, snapshot);
|
||||
|
||||
if (GTK_DEBUG_CHECK (SNAPSHOT))
|
||||
|
||||
Reference in New Issue
Block a user