summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Celix <dcelix@gmail.com>2011-06-10 02:47:09 +0200
committerMatthias Clasen <mclasen@redhat.com>2011-06-10 17:59:56 -0400
commit90e2fdca71153cd7b51fd5fd9fe803894f324f83 (patch)
tree76aa545e59048eb4fd301f3323bda8f60935e2fa
parentc92600c00f7046bc46e780cffeb7593afefe8af1 (diff)
downloadgtk+-90e2fdca71153cd7b51fd5fd9fe803894f324f83.tar.gz
gtk/gtkfontsel: gtk_misc_set_alignment replacing
Replacing the function gtk_misc_set_alignment () with gtk_widget_set_halign () and gtk_widget_set_valign () in gtk/gtkfontsel.c https://bugzilla.gnome.org/show_bug.cgi?id=650762
-rw-r--r--gtk/gtkfontsel.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 4beed4c2ce..f0d57b4951 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.c
@@ -387,13 +387,15 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
fontsel);
font_label = gtk_label_new_with_mnemonic (_("_Family:"));
- gtk_misc_set_alignment (GTK_MISC (font_label), 0.0, 0.5);
+ gtk_widget_set_halign (font_label, GTK_ALIGN_START);
+ gtk_widget_set_valign (font_label, GTK_ALIGN_CENTER);
gtk_widget_show (font_label);
gtk_table_attach (GTK_TABLE (table), font_label, 0, 1, 0, 1,
GTK_FILL, 0, 0, 0);
style_label = gtk_label_new_with_mnemonic (_("_Style:"));
- gtk_misc_set_alignment (GTK_MISC (style_label), 0.0, 0.5);
+ gtk_widget_set_halign (style_label, GTK_ALIGN_START);
+ gtk_widget_set_valign (style_label, GTK_ALIGN_CENTER);
gtk_widget_show (style_label);
gtk_table_attach (GTK_TABLE (table), style_label, 1, 2, 0, 1,
GTK_FILL, 0, 0, 0);
@@ -401,7 +403,8 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
label = gtk_label_new_with_mnemonic (_("Si_ze:"));
gtk_label_set_mnemonic_widget (GTK_LABEL (label),
priv->size_entry);
- 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_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 0, 1,
GTK_FILL, 0, 0, 0);
@@ -575,7 +578,8 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
/* create the text entry widget */
label = gtk_label_new_with_mnemonic (_("_Preview:"));
- 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_widget_show (label);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);