[gtk+] gtkfilechooserdefault: gtk_misc_set_alignment
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkfilechooserdefault: gtk_misc_set_alignment
- Date: Fri, 10 Jun 2011 22:18:45 +0000 (UTC)
commit 8af988e744590e3034a8d436818723b4e0ba9bb5
Author: Diego Celix <dcelix gmail com>
Date: Thu Jun 9 03:54:37 2011 +0200
gtkfilechooserdefault: gtk_misc_set_alignment
Replacing the function gtk_misc_set_alignment () with
gtk_widget_set_halign () and gtk_widget_set_valign () in
gtk/gtkfilechooserdefault.c
https://bugzilla.gnome.org/show_bug.cgi?id=650762
gtk/gtkfilechooserdefault.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index c316fb2..3d3fc49 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -4700,7 +4700,8 @@ save_widgets_create (GtkFileChooserDefault *impl)
/* Label */
widget = gtk_label_new_with_mnemonic (_("_Name:"));
- gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
+ gtk_widget_set_halign (widget, GTK_ALIGN_START);
+ gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
gtk_table_attach (GTK_TABLE (table), widget,
0, 1, 0, 1,
GTK_FILL, GTK_FILL,
@@ -4724,7 +4725,8 @@ save_widgets_create (GtkFileChooserDefault *impl)
/* Folder combo */
impl->save_folder_label = gtk_label_new (NULL);
- gtk_misc_set_alignment (GTK_MISC (impl->save_folder_label), 0.0, 0.5);
+ gtk_widget_set_halign (impl->save_folder_label, GTK_ALIGN_START);
+ gtk_widget_set_valign (impl->save_folder_label, GTK_ALIGN_CENTER);
gtk_table_attach (GTK_TABLE (table), impl->save_folder_label,
0, 1, 1, 2,
GTK_FILL, GTK_FILL,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]