Don't install the handler if the widget isn't realized.

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.
This commit is contained in:
Dave Camp 2002-03-28 17:05:34 +00:00 committed by Dave Camp
parent 600817117c
commit 418e0c4622
7 changed files with 33 additions and 0 deletions

View 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*:

View 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*:

View 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*:

View 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*:

View 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*:

View 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*:

View 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 =