Use always the #define to refer to the signature separator
[modest] / src / modest-dimming-rules-group.c
index 14ea232..4b3fd27 100644 (file)
@@ -128,6 +128,9 @@ modest_dimming_rules_group_finalize (GObject *obj)
 
        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);
 
@@ -354,10 +357,13 @@ _insensitive_press_callback (GtkWidget *widget, gpointer user_data)
        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)