]> Pileus Git - ~andy/gtk/commitdiff
Don't install the handler if the widget isn't realized.
authorDave Camp <dave@ximian.com>
Thu, 28 Mar 2002 17:05:34 +0000 (17:05 +0000)
committerDave Camp <campd@src.gnome.org>
Thu, 28 Mar 2002 17:05:34 +0000 (17:05 +0000)
2002-03-28  Dave Camp  <dave@ximian.com>

* gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
the handler if the widget isn't realized.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktreeview.c

index 84479e7426735fa2ae9d37573427f8ef83a71e35..e9e0c9dba3b580db7a4cbfa516d9a880d3ba26ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-28  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
+       the handler if the widget isn't realized.
+
 2002-03-28  Jakub Steiner <jimmac@ximian.com>
 
        * gtk/stock-icons/stock_font*:
index 84479e7426735fa2ae9d37573427f8ef83a71e35..e9e0c9dba3b580db7a4cbfa516d9a880d3ba26ed 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-28  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
+       the handler if the widget isn't realized.
+
 2002-03-28  Jakub Steiner <jimmac@ximian.com>
 
        * gtk/stock-icons/stock_font*:
index 84479e7426735fa2ae9d37573427f8ef83a71e35..e9e0c9dba3b580db7a4cbfa516d9a880d3ba26ed 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-28  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
+       the handler if the widget isn't realized.
+
 2002-03-28  Jakub Steiner <jimmac@ximian.com>
 
        * gtk/stock-icons/stock_font*:
index 84479e7426735fa2ae9d37573427f8ef83a71e35..e9e0c9dba3b580db7a4cbfa516d9a880d3ba26ed 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-28  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
+       the handler if the widget isn't realized.
+
 2002-03-28  Jakub Steiner <jimmac@ximian.com>
 
        * gtk/stock-icons/stock_font*:
index 84479e7426735fa2ae9d37573427f8ef83a71e35..e9e0c9dba3b580db7a4cbfa516d9a880d3ba26ed 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-28  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
+       the handler if the widget isn't realized.
+
 2002-03-28  Jakub Steiner <jimmac@ximian.com>
 
        * gtk/stock-icons/stock_font*:
index 84479e7426735fa2ae9d37573427f8ef83a71e35..e9e0c9dba3b580db7a4cbfa516d9a880d3ba26ed 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-28  Dave Camp  <dave@ximian.com>
+
+       * gtk/gtktreeview.c (install_scroll_sync_handler): Don't install
+       the handler if the widget isn't realized.
+
 2002-03-28  Jakub Steiner <jimmac@ximian.com>
 
        * gtk/stock-icons/stock_font*:
index 0fd6e819d977465a8908087d8890b630e77a3c0f..fdd920dcc0508e40ae7a2331ee2cf374fd6d76aa 100644 (file)
@@ -4114,6 +4114,9 @@ scroll_sync_handler (GtkTreeView *tree_view)
 static void
 install_scroll_sync_handler (GtkTreeView *tree_view)
 {
+  if (! GTK_WIDGET_REALIZED (tree_view))
+    return;
+
   if (!tree_view->priv->scroll_sync_timer)
     {
       tree_view->priv->scroll_sync_timer =