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\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);