static void modest_dimming_rules_group_init (ModestDimmingRulesGroup *obj);
static void modest_dimming_rules_group_finalize (GObject *obj);
-#ifdef MODEST_PLATFORM_MAEMO
+#ifndef MODEST_TOOLKIT_GTK
static void _insensitive_press_callback (GtkWidget *widget, gpointer user_data);
#endif
priv->window = MODEST_WINDOW (window);
widget = modest_dimming_rule_get_widget (rule);
-#ifdef MODEST_PLATFORM_MAEMO
+#ifndef MODEST_TOOLKIT_GTK
/* Connect insensitive-presss handler to show notifications */
g_signal_connect (G_OBJECT (widget), "insensitive-press",
G_CALLBACK (_insensitive_press_callback),
modest_dimming_rule_process (MODEST_DIMMING_RULE(data));
}
-#ifdef MODEST_PLATFORM_MAEMO
+#ifndef MODEST_TOOLKIT_GTK
static void
_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)