From f645e8b5be9e6a1402ae444cf7de9e364f0f675f Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Thu, 25 Jun 2009 21:08:44 +0200 Subject: [PATCH] On loading gtkhtml view, if limit of chars is hit, show banner (fixes NB#122233) --- src/hildon2/modest-msg-view-window.c | 2 ++ src/modest-ui-actions.c | 10 ++++++++++ src/modest-ui-actions.h | 2 ++ 3 files changed, 14 insertions(+) diff --git a/src/hildon2/modest-msg-view-window.c b/src/hildon2/modest-msg-view-window.c index 9771982..189db59 100644 --- a/src/hildon2/modest-msg-view-window.c +++ b/src/hildon2/modest-msg-view-window.c @@ -758,6 +758,8 @@ modest_msg_view_window_construct (ModestMsgViewWindow *self, G_CALLBACK (modest_ui_actions_on_details), obj); g_signal_connect (G_OBJECT(priv->msg_view), "link_contextual", G_CALLBACK (modest_ui_actions_on_msg_link_contextual), obj); + g_signal_connect (G_OBJECT(priv->msg_view), "limit_error", + G_CALLBACK (modest_ui_actions_on_limit_error), obj); g_signal_connect (G_OBJECT (priv->msg_view), "fetch_image", G_CALLBACK (on_fetch_image), obj); diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index d4353b3..75e6fdd 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -4816,6 +4816,16 @@ modest_ui_actions_on_details (GtkAction *action, } void +modest_ui_actions_on_limit_error (GtkAction *action, + ModestWindow *win) +{ + g_return_if_fail (MODEST_IS_MSG_VIEW_WINDOW (win)); + + modest_platform_information_banner ((GtkWidget *) win, NULL, _CS("ckdg_ib_maximum_characters_reached")); + +} + +void modest_ui_actions_on_toggle_show_cc (GtkToggleAction *toggle, ModestMsgEditWindow *window) { diff --git a/src/modest-ui-actions.h b/src/modest-ui-actions.h index 4e79ab4..65d8417 100644 --- a/src/modest-ui-actions.h +++ b/src/modest-ui-actions.h @@ -91,6 +91,8 @@ void modest_ui_actions_on_prev (GtkAction *action, ModestWindow *ma void modest_ui_actions_on_details (GtkAction *action, ModestWindow *win); +void modest_ui_actions_on_limit_error (GtkAction *action, ModestWindow *win); + gboolean modest_ui_actions_on_edit_mode_move_to (ModestWindow *win); void modest_ui_actions_on_move_to (GtkAction *action, ModestWindow *win); -- 1.7.9.5