priv = MODEST_DIMMING_RULES_GROUP_GET_PRIVATE(obj);
+ if (priv->window)
+ g_object_weak_unref (G_OBJECT (priv->window), on_window_destroy, obj);
+
if (priv->name != NULL)
g_free(priv->name);
notification = modest_dimming_rule_get_notification (rule);
if (notification == NULL)
goto frees;
-
+
+ /* Notifications for dimmed items are not shown in Hildon2 */
+#ifndef MODEST_TOOLKIT_HILDON2
/* Show notification banner */
- modest_platform_information_banner (NULL, NULL, notification);
-
+ modest_platform_information_banner (NULL, NULL, notification);
+#endif
+
/* Free */
frees:
if (group != NULL)