summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2015-03-22 07:25:59 +0000
committerJavier Jardón <jjardon@gnome.org>2015-03-22 09:16:16 +0000
commit7c4cd1fc426e4e30a25a390987b139fc1d32a0b3 (patch)
tree07b9d0401d62218460aea82a27d4b492d17a59c2
parentpassword: Use gtk_box instead gtk_[v|h]box (diff)
downloadzenity-7c4cd1fc426e4e30a25a390987b139fc1d32a0b3.tar.gz
zenity-7c4cd1fc426e4e30a25a390987b139fc1d32a0b3.tar.bz2
zenity-7c4cd1fc426e4e30a25a390987b139fc1d32a0b3.zip
src/password.c: Do not use deprecated GtkAlignment widget
-rw-r--r--src/password.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/password.c b/src/password.c
index 32be61ea..c5161002 100644
--- a/src/password.c
+++ b/src/password.c
@@ -38,7 +38,6 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
GtkWidget *vbox_labels;
GtkWidget *vbox_entries;
GtkWidget *label;
- GtkWidget *align;
zen_data = data;
@@ -103,11 +102,9 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
12);
if(password_data->username) {
- align = gtk_alignment_new(0.0, 0.12, 0.0, 0.0);
label = gtk_label_new(_("Username:"));
- gtk_container_add(GTK_CONTAINER(align), label);
gtk_box_pack_start(GTK_BOX(vbox_labels),
- align,
+ label,
TRUE,
FALSE,
12);
@@ -119,12 +116,9 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
12);
}
- align = gtk_alignment_new(0.0, 0.5, 0.0, 0.0);
label = gtk_label_new(_("Password:"));
- gtk_container_add(GTK_CONTAINER(align), label);
-
gtk_box_pack_start(GTK_BOX(vbox_labels),
- align,
+ label,
TRUE,
FALSE,
12);
bgstack15