X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-dimming-rules-group.c;h=4b3fd277800804cf0a8b6efa55808040bd233f50;hp=14ea23271366753aaa4e7472b0dcce912e164814;hb=0fbbf474b218d00f517fae83561a05f6919679e7;hpb=f6d386ff93e929092ba105385a29d760aeba9ff7 diff --git a/src/modest-dimming-rules-group.c b/src/modest-dimming-rules-group.c index 14ea232..4b3fd27 100644 --- a/src/modest-dimming-rules-group.c +++ b/src/modest-dimming-rules-group.c @@ -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)