[gtk+] gtkprinteroptionwidget: gtk_misc_set_alignment
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkprinteroptionwidget: gtk_misc_set_alignment
- Date: Fri, 10 Jun 2011 22:19:16 +0000 (UTC)
commit b16c97369910edbbed33f82f76fdb213fd08a8ea
Author: Diego Celix <dcelix gmail com>
Date: Fri Jun 10 02:32:05 2011 +0200
gtkprinteroptionwidget: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkprinteroptionwidget.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
gtk/gtkprinteroptionwidget.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c
index acd2926..fdc2e1d 100644
--- a/gtk/gtkprinteroptionwidget.c
+++ b/gtk/gtkprinteroptionwidget.c
@@ -797,7 +797,8 @@ construct_widgets (GtkPrinterOptionWidget *widget)
gtk_printer_option_get_activates_default (source));
label = gtk_label_new_with_mnemonic (_("_Name:"));
- 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_label_set_mnemonic_widget (GTK_LABEL (label), priv->entry);
gtk_table_attach (GTK_TABLE (priv->filechooser), label,
@@ -809,7 +810,8 @@ construct_widgets (GtkPrinterOptionWidget *widget)
0, 0);
label = gtk_label_new_with_mnemonic (_("_Save in folder:"));
- 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_label_set_mnemonic_widget (GTK_LABEL (label), priv->combo);
gtk_table_attach (GTK_TABLE (priv->filechooser), label,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]