[gtk+] GtkButton: Use GtkLabel:xalign
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkButton: Use GtkLabel:xalign
- Date: Tue, 30 Sep 2014 03:57:52 +0000 (UTC)
commit 6d3c61856b9897cf2435512fc92a6adc510a3577
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Sep 29 23:55:13 2014 -0400
GtkButton: Use GtkLabel:xalign
gtk/gtkbutton.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c
index 207bcbc..3795e7c 100644
--- a/gtk/gtkbutton.c
+++ b/gtk/gtkbutton.c
@@ -737,7 +737,9 @@ maybe_set_alignment (GtkButton *button,
return;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
- if (GTK_IS_MISC (widget))
+ if (GTK_IS_LABEL (widget))
+ g_object_set (widget, "xalign", priv->xalign, "yalign", priv->yalign, NULL);
+ else if (GTK_IS_MISC (widget))
gtk_misc_set_alignment (GTK_MISC (widget), priv->xalign, priv->yalign);
else if (GTK_IS_ALIGNMENT (widget))
g_object_set (widget, "xalign", priv->xalign, "yalign", priv->yalign, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]