forked from AuroraMiddleware/gtk
Keep GtkMisc:xalign working for labels
Set the new label properties when gtk_misc_set_alignment is used, to keep things working.
This commit is contained in:
parent
a43e0177cf
commit
059e33ecea
@ -25,6 +25,7 @@
|
||||
#include "config.h"
|
||||
#include "gtkcontainer.h"
|
||||
#include "gtkmisc.h"
|
||||
#include "gtklabel.h"
|
||||
#include "gtkintl.h"
|
||||
#include "gtkprivate.h"
|
||||
|
||||
@ -254,6 +255,12 @@ gtk_misc_set_alignment (GtkMisc *misc,
|
||||
priv->xalign = xalign;
|
||||
priv->yalign = yalign;
|
||||
|
||||
if (GTK_IS_LABEL (misc))
|
||||
{
|
||||
gtk_label_set_xalign (GTK_LABEL (misc), xalign);
|
||||
gtk_label_set_yalign (GTK_LABEL (misc), yalign);
|
||||
}
|
||||
|
||||
/* clear the area that was allocated before the change
|
||||
*/
|
||||
widget = GTK_WIDGET (misc);
|
||||
|
Loading…
Reference in New Issue
Block a user