[gtk+] gtk/gtkstatusbar: gtk_misc_set_alignment replacing



commit ea79cd43149348c5dac8d9aba0e2f16fc03f4004
Author: Diego Celix <dcelix gmail com>
Date:   Thu May 19 12:16:18 2011 +0100

    gtk/gtkstatusbar: gtk_misc_set_alignment replacing
    
    Replacing the function gtk_misc_set_alignment () with
    gtk_widget_set_halign () and gtk_widget_set_valign () in
    gtk/gtkstatusbar.c
    
    https://bugzilla.gnome.org/show_bug.cgi?id=650664

 gtk/gtkstatusbar.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c
index 49d4346..ff47d2e 100644
--- a/gtk/gtkstatusbar.c
+++ b/gtk/gtkstatusbar.c
@@ -217,7 +217,8 @@ gtk_statusbar_init (GtkStatusbar *statusbar)
 
   priv->label = gtk_label_new ("");
   gtk_label_set_single_line_mode (GTK_LABEL (priv->label), TRUE);
-  gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5);
+  gtk_widget_set_halign (priv->label, GTK_ALIGN_START);
+  gtk_widget_set_valign (priv->label, GTK_ALIGN_CENTER);
   gtk_label_set_ellipsize (GTK_LABEL (priv->label), PANGO_ELLIPSIZE_END);
   gtk_container_add (GTK_CONTAINER (message_area), priv->label);
   gtk_widget_show (priv->label);



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