ModestConfNotificationId id,
ModestMainWindow *self)
{
- ModestMainWindowPrivate *priv;
+ ModestMainWindowPrivate *priv = MODEST_MAIN_WINDOW_GET_PRIVATE(self);
TnyAccount *account;
if (!key ||
strcmp (key, MODEST_CONF_DEVICE_NAME))
return;
- priv = MODEST_MAIN_WINDOW_GET_PRIVATE(self);
-
if (priv->contents_style != MODEST_MAIN_WINDOW_CONTENTS_STYLE_DETAILS)
return;
{
ModestFolderViewPrivate *priv;
- /* Do not listen for changes in other namespaces */
- if (priv->notification_id != id)
- return;
g_return_if_fail (MODEST_IS_FOLDER_VIEW (self));
priv = MODEST_FOLDER_VIEW_GET_PRIVATE(self);
+ /* Do not listen for changes in other namespaces */
+ if (priv->notification_id != id)
+ return;
+
if (!strcmp (key, MODEST_CONF_DEVICE_NAME)) {
g_free (priv->local_account_name);