Disconnect from the old adjustments signals. (#325869, Jorn Baayen)

2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
	the old adjustments signals.  (#325869, Jorn Baayen)
This commit is contained in:
Matthias Clasen 2006-01-06 14:07:24 +00:00 committed by Matthias Clasen
parent b546df99ea
commit d08217457f
3 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-01-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
the old adjustments signals. (#325869, Jorn Baayen)
2006-01-06 Hans Breuer <hans@breuer.org>
* tests/makefile.msc : added a bunch of tests

View File

@ -1,3 +1,8 @@
2006-01-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkviewport.c (viewport_set_adjustment): Disconnect from
the old adjustments signals. (#325869, Jorn Baayen)
2006-01-06 Hans Breuer <hans@breuer.org>
* tests/makefile.msc : added a bunch of tests

View File

@ -464,8 +464,7 @@ viewport_set_adjustment (GtkViewport *viewport,
if (!adjustment)
adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0,
0.0, 0.0, 0.0));
if (*adjustmentp)
g_object_unref (*adjustmentp);
viewport_disconnect_adjustment (viewport, orientation);
*adjustmentp = adjustment;
g_object_ref_sink (adjustment);