diff options
author | Diego Celix <dcelix@gmail.com> | 2011-06-09 04:14:21 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-06-10 17:59:52 -0400 |
commit | eb54d933a85826141a0e686eb0ac11efe25a541b (patch) | |
tree | 142bbe50a2fd99e06c3bf039db8ee930fea0c9ad /gtk/gtkpagesetupunixdialog.c | |
parent | 8af988e744590e3034a8d436818723b4e0ba9bb5 (diff) | |
download | gtk+-eb54d933a85826141a0e686eb0ac11efe25a541b.tar.gz |
gtkpagesetupunixdialog: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkpagesetupunixdialog.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
Diffstat (limited to 'gtk/gtkpagesetupunixdialog.c')
-rw-r--r-- | gtk/gtkpagesetupunixdialog.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c index 3794122606..fe75d5dd39 100644 --- a/gtk/gtkpagesetupunixdialog.c +++ b/gtk/gtkpagesetupunixdialog.c @@ -900,7 +900,8 @@ populate_dialog (GtkPageSetupUnixDialog *ps_dialog) gtk_widget_show (table); label = gtk_label_new_with_mnemonic (_("_Format for:")); - 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); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, 0, 0, 0); @@ -922,7 +923,8 @@ populate_dialog (GtkPageSetupUnixDialog *ps_dialog) gtk_label_set_mnemonic_widget (GTK_LABEL (label), combo); label = gtk_label_new_with_mnemonic (_("_Paper size:")); - 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); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, 0, 0, 0); @@ -946,14 +948,16 @@ populate_dialog (GtkPageSetupUnixDialog *ps_dialog) label = gtk_label_new (NULL); priv->paper_size_label = label; - 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); gtk_table_attach (GTK_TABLE (table), label, 1, 4, 2, 3, GTK_FILL, 0, 0, 0); gtk_widget_show (label); label = gtk_label_new_with_mnemonic (_("_Orientation:")); - 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); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_FILL, 0, 0, 0); |