[gtk+] Make GtkCheckButton's label left aligned by default.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Make GtkCheckButton's label left aligned by default.
- Date: Wed, 29 Dec 2010 09:15:55 +0000 (UTC)
commit c234313a25f4857ffa0d39c8a043fa322a24a93d
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Dec 29 18:20:32 2010 +0900
Make GtkCheckButton's label left aligned by default.
Since we no longer limit the label's allocation to the minimum, now
we take a saner approach to left aligning the label.
gtk/gtkcheckbutton.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 893fcec..686dc84 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -96,6 +96,7 @@ gtk_check_button_init (GtkCheckButton *check_button)
gtk_widget_set_has_window (GTK_WIDGET (check_button), FALSE);
gtk_widget_set_receives_default (GTK_WIDGET (check_button), FALSE);
gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (check_button), TRUE);
+ gtk_button_set_alignment (GTK_BUTTON (check_button), 0.0, 0.5);
}
GtkWidget*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]