diff options
author | Matt Watson <mattdangerw@gmail.com> | 2014-01-29 14:39:59 -0800 |
---|---|---|
committer | Matt Watson <mattdangerw@gmail.com> | 2014-01-29 15:29:41 -0800 |
commit | 4f5505f7030b568c96978e28b5019c44cce949b4 (patch) | |
tree | 70a7e012a9b26919a42d10b94c22356d28e1dd79 | |
parent | 1885402793fffa0d73d52c721c69a9dade9d7fbc (diff) |
Updating page background props works before show_all called
EosWindow manages the page background transition and relies on a
stack internally to transition. The stack was not properly
flipping between its child widgets before show_all was called in
user code. This is because stack's set_visible_child method won't
work unless the children are actually visible. Calling show our
stacks children fixes the problem.
[endlessm/eos-sdk#535]
-rw-r--r-- | endless/eoswindow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/endless/eoswindow.c b/endless/eoswindow.c index 7b89312..a59b9b9 100644 --- a/endless/eoswindow.c +++ b/endless/eoswindow.c @@ -813,6 +813,7 @@ eos_window_init (EosWindow *self) gchar *background_name1 = g_strdup_printf (BACKGROUND_FRAME_NAME_TEMPLATE, 1); priv->next_background = g_object_new (GTK_TYPE_FRAME, "name", background_name1, NULL); + gtk_widget_show (priv->next_background); gtk_container_add (GTK_CONTAINER (priv->background_stack), priv->next_background); g_free (background_name1); @@ -820,6 +821,7 @@ eos_window_init (EosWindow *self) // will be the first visible page in the stack gchar *background_name0 = g_strdup_printf (BACKGROUND_FRAME_NAME_TEMPLATE, 0); priv->current_background = g_object_new (GTK_TYPE_FRAME, "name", background_name0, NULL); + gtk_widget_show (priv->current_background); gtk_container_add (GTK_CONTAINER (priv->background_stack), priv->current_background); g_free (background_name0); |