gcal-window: added new-event-mode as property.

Bind StackSwitcher sensitive state and GAction:enabled to new-event-mode property
This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:28 -05:00
parent bd8f2379c7
commit 04d14cfaca
2 changed files with 54 additions and 2 deletions
+6
View File
@@ -162,6 +162,12 @@ gcal_application_activate (GApplication *application)
"active-view",
G_SETTINGS_BIND_SET | G_SETTINGS_BIND_GET);
g_object_bind_property (priv->window,
"new-event-mode",
priv->view,
"enabled",
G_BINDING_DEFAULT | G_BINDING_INVERT_BOOLEAN);
variant = g_settings_get_value (priv->settings, "window-size");
size = g_variant_get_fixed_array (variant, &n_elements, sizeof (gint32));
if (n_elements == 2)