* src/widgets/modest-msg-view.c:
authorJose Dapena Paz <jdapena@igalia.com>
Mon, 2 Jul 2007 14:11:29 +0000 (14:11 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Mon, 2 Jul 2007 14:11:29 +0000 (14:11 +0000)
        * Now that gtkhtml0 includes a way to get selected area,
          activate the scroll on finding in page in view
          (fixes NB#58611).

pmo-trunk-r2530

src/widgets/modest-msg-view.c

index 72dbaa9..0b2343f 100644 (file)
@@ -1440,7 +1440,6 @@ modest_msg_view_search (ModestMsgView *self, const gchar *search)
        result = gtk_html_engine_search (GTK_HTML (priv->gtkhtml),
                                         search,
                                         FALSE, TRUE, TRUE);
-#if 0
        if (result) {
                gint x, y, w, h;
                gdouble offset_top, offset_bottom;
@@ -1454,7 +1453,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);
        g_object_unref (vadj);
@@ -1472,7 +1470,7 @@ modest_msg_view_search_next (ModestMsgView *self)
 
        priv = MODEST_MSG_VIEW_GET_PRIVATE (self);
        result = gtk_html_engine_search_next (GTK_HTML (priv->gtkhtml));
-#if 0
+
        if (result) {
                gint x, y, w, h;
                gdouble offset_top, offset_bottom;
@@ -1487,7 +1485,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;
 }