diff options
author | Diego Celix <dcelix@gmail.com> | 2011-05-19 12:16:18 +0100 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-05-21 09:16:00 -0400 |
commit | ea79cd43149348c5dac8d9aba0e2f16fc03f4004 (patch) | |
tree | 5a7f0b45dda19df9fa509e793a309822b5c24a89 /gtk/gtkstatusbar.c | |
parent | e578489579e0512d50a81389e065bfd7bd95595e (diff) | |
download | gtk+-ea79cd43149348c5dac8d9aba0e2f16fc03f4004.tar.gz |
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
Diffstat (limited to 'gtk/gtkstatusbar.c')
-rw-r--r-- | gtk/gtkstatusbar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkstatusbar.c b/gtk/gtkstatusbar.c index 49d43464d8..ff47d2edf3 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); |