manager: notify when sources are enabled/disabled

Add the new signal for GcalManager::source-enabled that
notifies connected widgets about the source change. With
that, we can keep checkboxes syncronizes.
This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:58 -04:00
committed by Erick Pérez Castellanos
parent 023a79a90f
commit 2b4e46a4b6
4 changed files with 49 additions and 0 deletions
+5
View File
@@ -2247,6 +2247,7 @@ gcal_source_dialog_set_mode (GcalSourceDialog *dialog,
GcalSourceDialogMode mode)
{
GcalSourceDialogPrivate *priv = dialog->priv;
GcalSourceDialogMode previous_mode = priv->mode;
priv->mode = mode;
@@ -2297,6 +2298,10 @@ gcal_source_dialog_set_mode (GcalSourceDialog *dialog,
default:
g_assert_not_reached ();
}
if (previous_mode == mode)
stack_visible_child_name_changed (G_OBJECT (priv->stack), NULL, dialog);
}
/**