[evolution/wip/webkit2] Bug 579675 - Empty Contacts minicard view when scrolling



commit 4bfd841fd06fc21153039b0005421ed5397a5ba3
Author: Milan Crha <mcrha redhat com>
Date:   Mon Feb 22 16:24:10 2016 +0100

    Bug 579675 - Empty Contacts minicard view when scrolling

 e-util/e-reflow.c |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/e-util/e-reflow.c b/e-util/e-reflow.c
index 974ddc3..1a8a9fa 100644
--- a/e-util/e-reflow.c
+++ b/e-util/e-reflow.c
@@ -733,24 +733,21 @@ connect_adjustment (EReflow *reflow,
                G_CALLBACK (adjustment_changed), reflow);
 }
 
-#if 0
 static void
-set_scroll_adjustments (GtkLayout *layout,
-                        GtkAdjustment *hadj,
-                        GtkAdjustment *vadj,
+set_scroll_adjustments (GnomeCanvas *canvas,
+                        GParamSpec *param,
                         EReflow *reflow)
 {
-       connect_adjustment (reflow, hadj);
+       connect_adjustment (reflow, gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (GNOME_CANVAS_ITEM 
(reflow)->canvas)));
 }
 
 static void
 connect_set_adjustment (EReflow *reflow)
 {
        reflow->set_scroll_adjustments_id = g_signal_connect (
-               GNOME_CANVAS_ITEM (reflow)->canvas, "set_scroll_adjustments",
+               GNOME_CANVAS_ITEM (reflow)->canvas, "notify::hadjustment",
                G_CALLBACK (set_scroll_adjustments), reflow);
 }
-#endif
 
 static void
 disconnect_set_adjustment (EReflow *reflow)
@@ -942,9 +939,7 @@ e_reflow_realize (GnomeCanvasItem *item)
 
        adjustment = gtk_scrollable_get_hadjustment (GTK_SCROLLABLE (item->canvas));
 
-#if 0
        connect_set_adjustment (reflow);
-#endif
        connect_adjustment (reflow, adjustment);
 
        page_size = gtk_adjustment_get_page_size (adjustment);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]