[gnome-calendar] window: set view visible before show it
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: set view visible before show it
- Date: Thu, 4 Dec 2014 22:45:22 +0000 (UTC)
commit 52fc61a1a568abef95a219f796b661c792b75fda
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Tue Dec 2 12:50:56 2014 -0500
window: set view visible before show it
Since the move into using GtkBuilder's files the views aren't show
automatically. That's why the setting of the view initially was failing.
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=741003
src/gcal-window.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 57d7b92..7a8d8f7 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1149,6 +1149,7 @@ gcal_window_set_property (GObject *object,
{
case PROP_ACTIVE_VIEW:
priv->active_view = g_value_get_enum (value);
+ gtk_widget_show (priv->views[priv->active_view]);
gtk_stack_set_visible_child (GTK_STACK (priv->views_stack),
priv->views[priv->active_view]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]