[gtk+] gtkprintbackend: gtk_misc_set_alignment replacing



commit a06dfd68731be79b4fe6e9911925d7b09205f2bb
Author: Diego Celix <dcelix gmail com>
Date:   Thu Jun 9 03:44:03 2011 +0200

    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

 gtk/gtkprintbackend.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkprintbackend.c b/gtk/gtkprintbackend.c
index 2980928..94ee9b9 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]