* Renamed one method in modest UI actions
[modest] / src / widgets / modest-msg-view.c
index dae14f6..ee39e2e 100644 (file)
@@ -1095,10 +1095,15 @@ modest_msg_view_new (TnyMsg *msg)
                gtk_box_pack_start (GTK_BOX(priv->headers_box), priv->mail_header_view, FALSE, FALSE, 0);
        
        if (priv->attachments_view) {
-               priv->attachments_box = (GtkWidget *) modest_mail_header_view_add_custom_header (MODEST_MAIL_HEADER_VIEW (priv->mail_header_view),
-                                                                                                _("Attachments:"), priv->attachments_view,
-                                                                                                FALSE, FALSE);
+               gchar *att_label = g_strconcat (_("mcen_me_viewer_attachments"), ":", NULL);
+
+               priv->attachments_box = (GtkWidget *)
+                       modest_mail_header_view_add_custom_header (MODEST_MAIL_HEADER_VIEW (priv->mail_header_view),
+                                                                  att_label,
+                                                                  priv->attachments_view,
+                                                                  FALSE, FALSE);
                gtk_widget_hide_all (priv->attachments_box);
+               g_free (att_label);
 /*             gtk_widget_set_no_show_all (priv->attachments_box, TRUE); */
        }
 
@@ -1486,8 +1491,6 @@ modest_msg_view_search (ModestMsgView *self, const gchar *search)
                                         TRUE,    /* forward */
                                         FALSE);  /* regexp */
 
-// wait for the updated gtkhtml (w27) to enable this
-#if 0
        if (result) {
                gint x, y, w, h;
                gdouble offset_top, offset_bottom;
@@ -1501,7 +1504,6 @@ modest_msg_view_search (ModestMsgView *self, const gchar *search)
                else if (offset_bottom > adj->value + adj->page_increment)
                        gtk_adjustment_set_value (adj, offset_bottom - adj->page_increment);
        }
-#endif 
 
        y_offset = tmp_vadj->value;
        gtk_layout_set_vadjustment (GTK_LAYOUT (priv->gtkhtml), vadj);
@@ -1521,8 +1523,6 @@ modest_msg_view_search_next (ModestMsgView *self)
        priv = MODEST_MSG_VIEW_GET_PRIVATE (self);
        result = gtk_html_engine_search_next (GTK_HTML (priv->gtkhtml));
 
-// fixme wait for new gtkhtml
-#if 0
        if (result) {
                gint x, y, w, h;
                gdouble offset_top, offset_bottom;
@@ -1537,7 +1537,6 @@ modest_msg_view_search_next (ModestMsgView *self)
                else if (offset_bottom > adj->value + adj->page_increment)
                        gtk_adjustment_set_value (adj, offset_bottom - adj->page_increment);
        }
-#endif
        return result;
 }