From: Jose Dapena Paz Date: Fri, 3 Aug 2007 18:14:23 +0000 (+0000) Subject: * src/widgets/modest-msg-view.c: X-Git-Tag: git_migration_finished~2633 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=58862afe7770c07e425d5f893f552d0342b82fbe * src/widgets/modest-msg-view.c: * (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 --- diff --git a/src/widgets/modest-msg-view.c b/src/widgets/modest-msg-view.c index de775b1..dae14f6 100644 --- a/src/widgets/modest-msg-view.c +++ b/src/widgets/modest-msg-view.c @@ -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;