diff options
author | Diego Celix <dcelix@gmail.com> | 2011-06-09 03:44:03 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-06-10 17:59:53 -0400 |
commit | a06dfd68731be79b4fe6e9911925d7b09205f2bb (patch) | |
tree | 68b28fd3b86adcad2a3d9f2884006bac2a715b75 /gtk/gtkprintbackend.c | |
parent | eb54d933a85826141a0e686eb0ac11efe25a541b (diff) | |
download | gtk+-a06dfd68731be79b4fe6e9911925d7b09205f2bb.tar.gz |
gtkprintbackend: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprintbackend.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diffstat (limited to 'gtk/gtkprintbackend.c')
-rw-r--r-- | gtk/gtkprintbackend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c index 2980928439..94ee9b9af7 100644 --- a/gtk/gtkprintbackend.c +++ b/gtk/gtkprintbackend.c @@ -757,7 +757,8 @@ request_password (GtkPrintBackend *backend, /* Left */ icon = gtk_image_new_from_stock (GTK_STOCK_DIALOG_AUTHENTICATION, 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); g_object_set (icon, "margin", 6, NULL); /* Right */ @@ -792,7 +793,8 @@ request_password (GtkPrintBackend *backend, gtk_box_set_homogeneous (GTK_BOX (box), TRUE); label = gtk_label_new (ai_display[i]); - gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); + gtk_widget_set_halign (label, GTK_ALIGN_START); + gtk_widget_set_valign (label, GTK_ALIGN_CENTER); entry = gtk_entry_new (); focus = entry; |