}
if (tny_list_get_length (att_list) == 0) {
- hildon_banner_show_information (NULL, NULL, _("TODO: no attachments selected to remove"));
+ modest_platform_system_banner (NULL, NULL, _("TODO: no attachments selected to remove"));
} else {
gboolean dialog_response;
gchar *message = NULL;
}
if (result_len + old_length > 1000) {
- hildon_banner_show_information (GTK_WIDGET (window), NULL,
+ modest_platform_system_banner (GTK_WIDGET (window), NULL,
_CS("ckdg_ib_maximum_characters_reached"));
}
g_string_free (result, TRUE);
if (message_is_empty (window)) {
g_free (priv->last_search);
priv->last_search = NULL;
- hildon_banner_show_information (GTK_WIDGET (window), NULL, _("mail_ib_nothing_to_find"));
+ modest_platform_system_banner (GTK_WIDGET (window), NULL, _("mail_ib_nothing_to_find"));
return;
}
g_free (priv->last_search);
priv->last_search = NULL;
/* Information banner about empty search */
- hildon_banner_show_information (NULL, NULL, _CS("ecdg_ib_find_rep_enter_text"));
+ modest_platform_system_banner (NULL, NULL, _CS("ecdg_ib_find_rep_enter_text"));
return;
}
result = gtk_text_iter_forward_search_insensitive (&selection_end, current_search,
&match_start, &match_end);
if (!result)
- hildon_banner_show_information (NULL, NULL, _HL("ckct_ib_find_search_complete"));
+ modest_platform_system_banner (NULL, NULL, _HL("ckct_ib_find_search_complete"));
} else {
GtkTextIter buffer_start;
gtk_text_buffer_get_start_iter (priv->text_buffer, &buffer_start);
result = gtk_text_iter_forward_search_insensitive (&buffer_start, current_search,
&match_start, &match_end);
if (!result)
- hildon_banner_show_information (NULL, NULL, _HL("ckct_ib_find_no_matches"));
+ modest_platform_system_banner (NULL, NULL, _HL("ckct_ib_find_no_matches"));
}
/* Mark as selected the string found in search */
ModestMsgViewWindowPrivate *priv = MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (obj);
if (modest_mime_part_view_is_empty (MODEST_MIME_PART_VIEW (priv->msg_view))) {
- hildon_banner_show_information (NULL, NULL, _("mail_ib_nothing_to_find"));
+ modest_platform_system_banner (NULL, NULL, _("mail_ib_nothing_to_find"));
return;
}
if ((current_search == NULL) || (strcmp (current_search, "") == 0)) {
g_free (current_search);
- hildon_banner_show_information (NULL, NULL, _CS("ecdg_ib_find_rep_enter_text"));
+ modest_platform_system_banner (NULL, NULL, _CS("ecdg_ib_find_rep_enter_text"));
return;
}
result = modest_isearch_view_search (MODEST_ISEARCH_VIEW (priv->msg_view),
priv->last_search);
if (!result) {
- hildon_banner_show_information (NULL, NULL,
+ modest_platform_system_banner (NULL, NULL,
_HL("ckct_ib_find_no_matches"));
g_free (priv->last_search);
priv->last_search = NULL;
}
} else {
if (!modest_isearch_view_search_next (MODEST_ISEARCH_VIEW (priv->msg_view))) {
- hildon_banner_show_information (NULL, NULL,
+ modest_platform_system_banner (NULL, NULL,
_HL("ckct_ib_find_search_complete"));
g_free (priv->last_search);
priv->last_search = NULL;
zoom_level = modest_zoomable_get_zoom (MODEST_ZOOMABLE (priv->msg_view));
if (zoom_level >= 2.0) {
- hildon_banner_show_information (NULL, NULL,
+ modest_platform_system_banner (NULL, NULL,
_CS("ckct_ib_max_zoom_level_reached"));
return FALSE;
} else if (zoom_level >= 1.5) {
zoom_level = modest_zoomable_get_zoom (MODEST_ZOOMABLE (priv->msg_view));
if (zoom_level <= 0.5) {
- hildon_banner_show_information (NULL, NULL,
+ modest_platform_system_banner (NULL, NULL,
_CS("ckct_ib_min_zoom_level_reached"));
return FALSE;
} else if (zoom_level <= 0.8) {
if (selected_attachments == NULL || tny_list_get_length (selected_attachments) == 0) {
error = TRUE;
} else if (tny_list_get_length (selected_attachments) > 1) {
- hildon_banner_show_information (NULL, NULL, _("mcen_ib_unable_to_display_more"));
+ modest_platform_system_banner (NULL, NULL, _("mcen_ib_unable_to_display_more"));
error = TRUE;
} else {
TnyIterator *iter;
idle_save_mime_part_show_result (SaveMimePartInfo *info)
{
/* This is a GDK lock because we are an idle callback and
- * hildon_banner_show_information is or does Gtk+ code */
+ * modest_platform_system_banner is or does Gtk+ code */
gdk_threads_enter (); /* CHECKED */
if (info->result == GNOME_VFS_OK) {
- hildon_banner_show_information (NULL, NULL, _CS("sfil_ib_saved"));
+ modest_platform_system_banner (NULL, NULL, _CS("sfil_ib_saved"));
} else if (info->result == GNOME_VFS_ERROR_NO_SPACE) {
gchar *msg = NULL;
modest_platform_information_banner (NULL, NULL, msg);
g_free (msg);
} else {
- hildon_banner_show_information (NULL, NULL, _("mail_ib_file_operation_failed"));
+ modest_platform_system_banner (NULL, NULL, _("mail_ib_file_operation_failed"));
}
save_mime_part_info_free (info, FALSE);
gdk_threads_leave (); /* CHECKED */
#else
err_msg = _FM("sfil_ib_readonly_location");
#endif
- hildon_banner_show_information (NULL, NULL, err_msg);
+ modest_platform_system_banner (NULL, NULL, err_msg);
} else {
TnyIterator *iter;
}
priv->remove_attachment_banner = g_object_ref (
- hildon_banner_show_animation (NULL, NULL, _("mcen_me_inbox_remove_attachments")));
+ modest_platform_animation_banner (NULL, NULL, _("mcen_me_inbox_remove_attachments")));
gdk_threads_leave ();