Forgotten file

svn path=/trunk/; revision=18850
This commit is contained in:
Matthias Clasen 2007-09-21 14:19:19 +00:00
parent 763417b4c1
commit 4e5d3ecf07

View File

@ -196,6 +196,13 @@ gtk_misc_set_alignment (GtkMisc *misc,
if ((xalign != misc->xalign) || (yalign != misc->yalign)) 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->xalign = xalign;
misc->yalign = yalign; misc->yalign = yalign;
@ -209,12 +216,6 @@ gtk_misc_set_alignment (GtkMisc *misc,
gtk_widget_queue_draw (widget); 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)); g_object_thaw_notify (G_OBJECT (misc));
} }
} }
@ -257,6 +258,13 @@ gtk_misc_set_padding (GtkMisc *misc,
if ((xpad != misc->xpad) || (ypad != misc->ypad)) 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 = &(GTK_WIDGET (misc)->requisition);
requisition->width -= misc->xpad * 2; requisition->width -= misc->xpad * 2;
requisition->height -= misc->ypad * 2; requisition->height -= misc->ypad * 2;
@ -270,12 +278,6 @@ gtk_misc_set_padding (GtkMisc *misc,
if (GTK_WIDGET_DRAWABLE (misc)) if (GTK_WIDGET_DRAWABLE (misc))
gtk_widget_queue_resize (GTK_WIDGET (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)); g_object_thaw_notify (G_OBJECT (misc));
} }
} }