summaryrefslogtreecommitdiff
path: root/gtk/gtkmisc.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2007-09-21 14:19:19 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-09-21 14:19:19 +0000
commit4e5d3ecf07c8db263414b5fc998e1ce4d09c21e4 (patch)
tree687024d7aa24c7066cb10c6c3b4fe431c97c3f51 /gtk/gtkmisc.c
parent763417b4c1fd06aa4e02516219829eaca8682a31 (diff)
downloadgtk+-4e5d3ecf07c8db263414b5fc998e1ce4d09c21e4.tar.gz
Forgotten file
svn path=/trunk/; revision=18850
Diffstat (limited to 'gtk/gtkmisc.c')
-rw-r--r--gtk/gtkmisc.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/gtk/gtkmisc.c b/gtk/gtkmisc.c
index 71a84fb2d5..21e485d7b9 100644
--- a/gtk/gtkmisc.c
+++ b/gtk/gtkmisc.c
@@ -196,6 +196,13 @@ gtk_misc_set_alignment (GtkMisc *misc,
if ((xalign != misc->xalign) || (yalign != misc->yalign))
{
+ g_object_freeze_notify (G_OBJECT (misc));
+ if (xalign != misc->xalign)
+ g_object_notify (G_OBJECT (misc), "xalign");
+
+ if (yalign != misc->yalign)
+ g_object_notify (G_OBJECT (misc), "yalign");
+
misc->xalign = xalign;
misc->yalign = yalign;
@@ -209,12 +216,6 @@ gtk_misc_set_alignment (GtkMisc *misc,
gtk_widget_queue_draw (widget);
}
- g_object_freeze_notify (G_OBJECT (misc));
- if (xalign != misc->xalign)
- g_object_notify (G_OBJECT (misc), "xalign");
-
- if (yalign != misc->yalign)
- g_object_notify (G_OBJECT (misc), "yalign");
g_object_thaw_notify (G_OBJECT (misc));
}
}
@@ -257,6 +258,13 @@ gtk_misc_set_padding (GtkMisc *misc,
if ((xpad != misc->xpad) || (ypad != misc->ypad))
{
+ g_object_freeze_notify (G_OBJECT (misc));
+ if (xpad != misc->xpad)
+ g_object_notify (G_OBJECT (misc), "xpad");
+
+ if (ypad != misc->ypad)
+ g_object_notify (G_OBJECT (misc), "ypad");
+
requisition = &(GTK_WIDGET (misc)->requisition);
requisition->width -= misc->xpad * 2;
requisition->height -= misc->ypad * 2;
@@ -270,12 +278,6 @@ gtk_misc_set_padding (GtkMisc *misc,
if (GTK_WIDGET_DRAWABLE (misc))
gtk_widget_queue_resize (GTK_WIDGET (misc));
- g_object_freeze_notify (G_OBJECT (misc));
- if (xpad != misc->xpad)
- g_object_notify (G_OBJECT (misc), "xpad");
-
- if (ypad != misc->ypad)
- g_object_notify (G_OBJECT (misc), "ypad");
g_object_thaw_notify (G_OBJECT (misc));
}
}