diff options
author | Matthias Clasen <mclasen@redhat.com> | 2011-06-07 22:31:45 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-06-07 22:31:45 -0400 |
commit | 18c8fe52f0ee21c9d35a9f04d5389ee7a6872d55 (patch) | |
tree | e4b7c950bfdebce6287a6c67fc5612fd5c69f0cc /gtk/gtkfilechooserdefault.c | |
parent | 6176e23b30c0ee6f22b04f60f2bf6c8f3ddccde3 (diff) | |
download | gtk+-18c8fe52f0ee21c9d35a9f04d5389ee7a6872d55.tar.gz |
Don't use GtkAlignments
Diffstat (limited to 'gtk/gtkfilechooserdefault.c')
-rw-r--r-- | gtk/gtkfilechooserdefault.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index dedc15f9ec..c583ec2b8f 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -23,7 +23,6 @@ #include "gtkfilechooserdefault.h" -#include "gtkalignment.h" #include "gtkbindings.h" #include "gtkcelllayout.h" #include "gtkcellrendererpixbuf.h" @@ -4684,7 +4683,6 @@ save_widgets_create (GtkFileChooserDefault *impl) GtkWidget *vbox; GtkWidget *table; GtkWidget *widget; - GtkWidget *alignment; if (impl->save_widgets != NULL) return; @@ -4741,15 +4739,15 @@ save_widgets_create (GtkFileChooserDefault *impl) gtk_label_set_mnemonic_widget (GTK_LABEL (impl->save_folder_label), impl->save_folder_combo); /* Expander */ - alignment = gtk_alignment_new (0.0, 0.5, 1.0, 1.0); - gtk_box_pack_start (GTK_BOX (vbox), alignment, FALSE, FALSE, 0); impl->save_expander = gtk_expander_new_with_mnemonic (_("_Browse for other folders")); - gtk_container_add (GTK_CONTAINER (alignment), impl->save_expander); + gtk_widget_set_halign (impl->save_expander, GTK_ALIGN_START); + gtk_widget_set_valign (impl->save_expander, GTK_ALIGN_CENTER); + gtk_box_pack_start (GTK_BOX (vbox), impl->save_expander, FALSE, FALSE, 0); g_signal_connect (impl->save_expander, "notify::expanded", G_CALLBACK (expander_changed_cb), impl); - gtk_widget_show_all (alignment); + gtk_widget_show (impl->save_expander); impl->save_widgets = vbox; gtk_box_pack_start (GTK_BOX (impl), impl->save_widgets, FALSE, FALSE, 0); @@ -5114,7 +5112,9 @@ gtk_file_chooser_default_constructor (GType type, gtk_box_pack_start (GTK_BOX (impl), impl->browse_widgets, TRUE, TRUE, 0); /* Alignment to hold extra widget */ - impl->extra_align = gtk_alignment_new (0.0, 0.5, 1.0, 1.0); + impl->extra_align = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); + gtk_widget_set_halign (impl->extra_align, GTK_ALIGN_START); + gtk_widget_set_valign (impl->extra_align, GTK_ALIGN_CENTER); gtk_box_pack_start (GTK_BOX (impl), impl->extra_align, FALSE, FALSE, 0); gtk_widget_pop_composite_child (); @@ -8007,8 +8007,7 @@ gtk_file_chooser_default_get_default_size (GtkFileChooserEmbed *chooser_embed, if (impl->extra_widget && gtk_widget_get_visible (impl->extra_widget)) { - gtk_widget_get_preferred_size (impl->extra_align, - &req, NULL); + gtk_widget_get_preferred_size (impl->extra_align, &req, NULL); *default_height += gtk_box_get_spacing (GTK_BOX (chooser_embed)) + req.height; } } |