From eb76287995fecbb4bef991d29066549570a48164 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 7 Jun 2011 09:51:35 -0400 Subject: [PATCH] GtkAboutDialog: Don't use an alignment Use align and margin widget properties instead. --- gtk/gtkaboutdialog.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index f9335c0608..5692273e72 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -33,7 +33,6 @@ #include #include "gtkaboutdialog.h" -#include "gtkalignment.h" #include "gtkbutton.h" #include "gtkbbox.h" #include "gtkdialog.h" @@ -2346,7 +2345,6 @@ create_credits_page (GtkAboutDialog *about) GtkWidget *page_vbox; GtkWidget *sw; GtkWidget *grid; - GtkWidget *alignment; gint row; page_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); @@ -2360,15 +2358,14 @@ create_credits_page (GtkAboutDialog *about) GTK_POLICY_AUTOMATIC); gtk_box_pack_start (GTK_BOX (page_vbox), sw, TRUE, TRUE, 0); - alignment = gtk_alignment_new (0.5, 0, 0, 0); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), alignment); - grid = gtk_grid_new (); gtk_container_set_border_width (GTK_CONTAINER (grid), 5); gtk_orientable_set_orientation (GTK_ORIENTABLE (grid), GTK_ORIENTATION_VERTICAL); gtk_grid_set_column_spacing (GTK_GRID (grid), 2); gtk_grid_set_row_spacing (GTK_GRID (grid), 12); - gtk_container_add (GTK_CONTAINER (alignment), grid); + gtk_widget_set_halign (grid, GTK_ALIGN_CENTER); + gtk_widget_set_valign (grid, GTK_ALIGN_START); + gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (sw), grid); if (priv->authors != NULL) add_credits_section (about, GTK_GRID (grid), &row, _("Created by"), priv->authors);