summaryrefslogtreecommitdiff
path: root/endless/eostopbar.c
diff options
context:
space:
mode:
authorDavid Winegar <david.s.winegar@gmail.com>2014-06-11 15:45:51 -0700
committerDavid Winegar <david.s.winegar@gmail.com>2014-06-11 15:50:14 -0700
commita4c2bb16f2506d87b76f0f8aa9fa07b50af80610 (patch)
tree1dbb2f9157a6f9dfb8d54b3bb65df6434df4425e /endless/eostopbar.c
parentfb6f0dbe08baf8699ab0545298a9f8ab83dd8d83 (diff)
Make topbar buttons no longer focusable
Set 'can-focus' properties to false for the buttons on the topbar of the window (minimize, maximize, close). This was in response to a bug in which the focus was being stolen by the maximize button after clicking it and the eos-typing app was unable to regain, now the behavior is consistent with all non-Endless applications. [endlessm/eos-sdk#1043]
Diffstat (limited to 'endless/eostopbar.c')
-rw-r--r--endless/eostopbar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/endless/eostopbar.c b/endless/eostopbar.c
index 85f4753..f53a371 100644
--- a/endless/eostopbar.c
+++ b/endless/eostopbar.c
@@ -191,6 +191,7 @@ eos_top_bar_init (EosTopBar *self)
priv->minimize_button =
g_object_new (GTK_TYPE_BUTTON,
+ "can-focus", FALSE,
"halign", GTK_ALIGN_END,
"valign", GTK_ALIGN_CENTER,
NULL);
@@ -206,6 +207,7 @@ eos_top_bar_init (EosTopBar *self)
priv->maximize_button =
g_object_new (GTK_TYPE_BUTTON,
+ "can-focus", FALSE,
"halign", GTK_ALIGN_END,
"valign", GTK_ALIGN_CENTER,
NULL);
@@ -220,6 +222,7 @@ eos_top_bar_init (EosTopBar *self)
priv->close_button =
g_object_new (GTK_TYPE_BUTTON,
+ "can-focus", FALSE,
"halign", GTK_ALIGN_END,
"valign", GTK_ALIGN_CENTER,
NULL);