[gtk+/wip/matthiasc/gsk-renderer: 1/2] button: Restore focus
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gsk-renderer: 1/2] button: Restore focus
- Date: Sat, 6 Aug 2016 21:36:14 +0000 (UTC)
commit acf8b2f0de9c38b95304aa1a16f1728f2ea216db
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Aug 6 10:34:18 2016 -0400
button: Restore focus
The custom gadget draw function has the side effect of informing
the gadget machinery wether to draw focus or not. Bring the
draw function back, just for its boolean return value. We may
want to find a better solution for this.
gtk/gtkbutton.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index e7e89de..a6b8512 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -1799,7 +1799,7 @@ gtk_button_get_render_node (GtkWidget *widget,
{
GskRenderNode *res = gtk_css_gadget_get_render_node (GTK_BUTTON (widget)->priv->gadget,
renderer,
- FALSE);
+ gtk_widget_has_visible_focus (widget));
if (res == NULL)
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]