[gtk+] gtk/gtkfontsel: gtk_misc_set_alignment replacing
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtk/gtkfontsel: gtk_misc_set_alignment replacing
- Date: Fri, 10 Jun 2011 22:19:11 +0000 (UTC)
commit 90e2fdca71153cd7b51fd5fd9fe803894f324f83
Author: Diego Celix <dcelix gmail com>
Date: Fri Jun 10 02:47:09 2011 +0200
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
gtk/gtkfontsel.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 4beed4c..f0d57b4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]