[gtk+] demo-sizegroup: gtk_misc_set_alignment replacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] demo-sizegroup: gtk_misc_set_alignment replacing
- Date: Mon, 29 Aug 2011 00:36:11 +0000 (UTC)
commit 464fa4715f7b8bdfc4e66bcf9c63b7ac48a75954
Author: Diego Celix <dcelix gmail com>
Date: Mon Jun 13 01:28:48 2011 +0200
demo-sizegroup: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
demos/gtk-demo/sizegroup.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
demos/gtk-demo/sizegroup.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/demos/gtk-demo/sizegroup.c b/demos/gtk-demo/sizegroup.c
index e7a8595..5bc95b7 100644
--- a/demos/gtk-demo/sizegroup.c
+++ b/demos/gtk-demo/sizegroup.c
@@ -46,7 +46,8 @@ add_row (GtkTable *table,
GtkWidget *label;
label = gtk_label_new_with_mnemonic (label_text);
- gtk_misc_set_alignment (GTK_MISC (label), 0, 1);
+ gtk_widget_set_halign (label, GTK_ALIGN_START);
+ gtk_widget_set_valign (label, GTK_ALIGN_END);
gtk_table_attach (GTK_TABLE (table), label,
0, 1, row, row + 1,
GTK_EXPAND | GTK_FILL, 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]