summaryrefslogtreecommitdiff
path: root/gtk/gtkmountoperation.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-06-07 12:39:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-06-07 12:41:10 -0400
commitc26b83a0eaec1961ec7a68e425baff7b5d8f4f8c (patch)
tree74e2d9c4bd26dd677fef78835fb29f50a7d7f00b /gtk/gtkmountoperation.c
parentd87190f60f55ba84c6c8942d348fdc4284abcad8 (diff)
downloadgtk+-c26b83a0eaec1961ec7a68e425baff7b5d8f4f8c.tar.gz
GtkMountOperation: don't use a GtkAlignment
Diffstat (limited to 'gtk/gtkmountoperation.c')
-rw-r--r--gtk/gtkmountoperation.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/gtk/gtkmountoperation.c b/gtk/gtkmountoperation.c
index ffa6656866..f1d7980f08 100644
--- a/gtk/gtkmountoperation.c
+++ b/gtk/gtkmountoperation.c
@@ -30,7 +30,6 @@
#include <string.h>
#include "gtkmountoperationprivate.h"
-#include "gtkalignment.h"
#include "gtkbox.h"
#include "gtkentry.h"
#include "gtkhbox.h"
@@ -453,7 +452,6 @@ gtk_mount_operation_ask_password (GMountOperation *mount_op,
GtkWidget *widget;
GtkDialog *dialog;
GtkWindow *window;
- GtkWidget *entry_container;
GtkWidget *hbox, *main_vbox, *vbox, *icon;
GtkWidget *table;
GtkWidget *message_label;
@@ -584,19 +582,15 @@ gtk_mount_operation_ask_password (GMountOperation *mount_op,
rows++;
/* The table that holds the entries */
- entry_container = gtk_alignment_new (0.0, 0.0, 1.0, 1.0);
-
- gtk_alignment_set_padding (GTK_ALIGNMENT (entry_container),
- 0, 0, can_anonymous ? 12 : 0, 0);
-
- gtk_box_pack_start (GTK_BOX (vbox), entry_container,
- FALSE, FALSE, 0);
- priv->entry_container = entry_container;
-
table = gtk_table_new (rows, 2, FALSE);
gtk_table_set_col_spacings (GTK_TABLE (table), 12);
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
- gtk_container_add (GTK_CONTAINER (entry_container), table);
+
+ if (can_anonymous)
+ gtk_widget_set_margin_left (table, 12);
+
+ gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
+ priv->entry_container = table;
rows = 0;