summaryrefslogtreecommitdiff
path: root/gtk/gtkruler.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2001-08-11 20:27:36 +0000
committerHans Breuer <hans@src.gnome.org>2001-08-11 20:27:36 +0000
commit0b5db507da8fff0c9d4fad16c4b4fc569ffb3ec0 (patch)
treeb7c4593df4d6ff4ee476a9944e515698d6fe99ac /gtk/gtkruler.c
parent4041a889cd7f8219568ffbf49a611029786680eb (diff)
downloadgdk-pixbuf-0b5db507da8fff0c9d4fad16c4b4fc569ffb3ec0.tar.gz
coalescing property notifies
2001-08-11 Hans Breuer <hans@breuer.org> * gtk/gtkalignment.c, gtk/gtkarrow.c, gtk/gtkaspectframe.c, gtk/gtkcellrenderer.c, gtk/gtkcellrenderertext.c, gtk/gtkcombo.c, gtk/gtkcurve.c, gtk/gtkfontsel.c, gtk/gtklayout.c, gtk/gtkmisc.c, gtk/gtkpacker.c, gtk/gtkprogress.c, gtk/gtkruler.c,, gtk/gtksettings.c, gtk/gtkspinbutton.c, gtk/gtktexttag.c : coalescing property notifies * gtk/gtkclist.c, gtk/gtktipsquery.c, gtk/gtktexttag.c, gtk/gtkwidget.c : added G_SIGNAL_TYPE_STATIC_SCOPE to all GDK_TYPE_EVENT signals * gtk/gtkalignment.c : removed 'direct allocation bug', which Tim discovered while reading the patch
Diffstat (limited to 'gtk/gtkruler.c')
-rw-r--r--gtk/gtkruler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkruler.c b/gtk/gtkruler.c
index 754155a02..97f358f91 100644
--- a/gtk/gtkruler.c
+++ b/gtk/gtkruler.c
@@ -271,6 +271,7 @@ gtk_ruler_set_range (GtkRuler *ruler,
{
g_return_if_fail (GTK_IS_RULER (ruler));
+ g_object_freeze_notify (G_OBJECT (ruler));
if (ruler->lower != lower)
{
ruler->lower = lower;
@@ -291,6 +292,7 @@ gtk_ruler_set_range (GtkRuler *ruler,
ruler->max_size = max_size;
g_object_notify (G_OBJECT (ruler), "max_size");
}
+ g_object_thaw_notify (G_OBJECT (ruler));
if (GTK_WIDGET_DRAWABLE (ruler))
gtk_widget_queue_draw (GTK_WIDGET (ruler));