diff options
author | Diego Celix <dcelix@gmail.com> | 2011-06-13 01:33:16 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-08-28 20:17:02 -0400 |
commit | bd69e6a6cd276d0c909988712bafc002ee829ed8 (patch) | |
tree | 94ba1f8d6b9bfb3852ffd35ee50066eff0e1c760 /demos | |
parent | 464fa4715f7b8bdfc4e66bcf9c63b7ac48a75954 (diff) | |
download | gtk+-bd69e6a6cd276d0c909988712bafc002ee829ed8.tar.gz |
demo-ui_manager: 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/ui_manager.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/ui_manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/gtk-demo/ui_manager.c b/demos/gtk-demo/ui_manager.c index 76ea246c76..293fd10885 100644 --- a/demos/gtk-demo/ui_manager.c +++ b/demos/gtk-demo/ui_manager.c @@ -205,7 +205,8 @@ do_ui_manager (GtkWidget *do_widget) label = gtk_label_new ("Type\n<alt>\nto start"); gtk_widget_set_size_request (label, 200, 200); - gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5); + gtk_widget_set_halign (label, GTK_ALIGN_CENTER); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); gtk_box_pack_start (GTK_BOX (box1), label, TRUE, TRUE, 0); |