From 2d610c7cffea3e70969b566a02db4b762bd34d35 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sun, 25 Jan 2015 18:16:04 +0100 Subject: [PATCH] [glib] Remove deprecated use of gtk_misc_set_alignment() from demo/main.c https://bugs.freedesktop.org/show_bug.cgi?id=88788 --- glib/demo/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/demo/main.c b/glib/demo/main.c index d1a1215..ed0d56b 100644 --- a/glib/demo/main.c +++ b/glib/demo/main.c @@ -208,8 +208,8 @@ pgd_demo_get_auth_dialog (GFile *uri_file) icon = gtk_image_new_from_icon_name ("dialog-password", GTK_ICON_SIZE_DIALOG); - - gtk_misc_set_alignment (GTK_MISC (icon), 0.5, 0.0); + gtk_widget_set_halign(icon, GTK_ALIGN_CENTER); + gtk_widget_set_valign(icon, GTK_ALIGN_START); gtk_box_pack_start (GTK_BOX (hbox), icon, FALSE, FALSE, 0); gtk_widget_show (icon); -- 1.9.1