* src/widgets/modest-msg-view.c:
authorJose Dapena Paz <jdapena@igalia.com>
Fri, 3 Aug 2007 18:14:23 +0000 (18:14 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Fri, 3 Aug 2007 18:14:23 +0000 (18:14 +0000)
* (idle_readjust_scroll): hackish solution to force a
  scroll readjustment (setting 1.0 and 0.0 in the same handler
  and after showing the widget for the first time). This way
  we don't get a broken scroll with stylus (fixes NB#62820).

pmo-trunk-r2928

src/widgets/modest-msg-view.c

index de775b1..dae14f6 100644 (file)
@@ -1655,6 +1655,12 @@ idle_readjust_scroll (ModestMsgView *view)
                gtk_adjustment_changed (html_vadj);
                gtk_widget_queue_resize (GTK_WIDGET (view));
                gtk_widget_queue_draw (GTK_WIDGET (view));
+
+               /* Just another hack for making readjust really work. This forces an update
+                * of the scroll, and then, make the scroll really update properly the
+                * the size and not corrupt scrollable area */
+               gtk_adjustment_set_value (priv->vadj, 1.0);
+               gtk_adjustment_set_value (priv->vadj, 0.0);
        }
        g_object_unref (G_OBJECT (view));
        return FALSE;