summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorDiego Celix <dcelix@gmail.com>2011-06-13 01:36:02 +0200
committerMatthias Clasen <mclasen@redhat.com>2011-08-28 20:16:57 -0400
commita3719d3033305822a17f6024ef7491d270a0681f (patch)
tree69b02ae6bb10b8c16ec5244a416db2868003bd59 /demos
parent372a907e97f4b01a0fd845278db963f5b8221a26 (diff)
downloadgtk+-a3719d3033305822a17f6024ef7491d270a0681f.tar.gz
demo-changedisplay:gtk_misc_set_alignment replace
Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in demos/gtk-demo/changedisplay.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/changedisplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/gtk-demo/changedisplay.c b/demos/gtk-demo/changedisplay.c
index 36b7af25d1..a86b9aff16 100644
--- a/demos/gtk-demo/changedisplay.c
+++ b/demos/gtk-demo/changedisplay.c
@@ -397,7 +397,8 @@ left_align_button_new (const char *label)
GtkWidget *button = gtk_button_new_with_mnemonic (label);
GtkWidget *child = gtk_bin_get_child (GTK_BIN (button));
- gtk_misc_set_alignment (GTK_MISC (child), 0., 0.5);
+ gtk_widget_set_halign (child, GTK_ALIGN_START);
+ gtk_widget_set_valign (child, GTK_ALIGN_CENTER);
return button;
}