+
+static void
+_insensitive_press_callback (GtkWidget *widget, gpointer user_data)
+{
+ ModestDimmingRulesGroup *group = NULL;
+ ModestDimmingRule *rule = NULL;
+ gchar *notification = NULL;
+
+ g_return_if_fail (MODEST_IS_DIMMING_RULE (user_data));
+ rule = MODEST_DIMMING_RULE (user_data);
+
+ /* Check if this group has notification system enabled */
+ group = modest_dimming_rule_get_group (rule);
+ if (!modest_dimming_rules_group_notifications_enabled (group))
+ goto frees;
+
+ /* Get specific notification */
+ notification = modest_dimming_rule_get_notification (rule);
+ if (notification == NULL)
+ goto frees;
+
+ /* Show notification banner */
+ modest_platform_information_banner (NULL, NULL, notification);
+
+ /* Free */
+ frees:
+ if (group != NULL)
+ g_object_unref(group);
+ if (notification != NULL)
+ g_free(notification);
+}