[gnome-disk-utility] avoid dialog resizing
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-disk-utility] avoid dialog resizing
- Date: Thu, 26 Mar 2009 12:18:55 -0400 (EDT)
commit bf3a0be88fca926497c031b3505df2774025c094
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 25 23:29:16 2009 -0400
avoid dialog resizing
Add a placeholder to avoid resizing the dialog when the warning_hbox
is shown and hidden.
Signed-off-by: David Zeuthen <davidz redhat com>
---
src/gdu-gtk/gdu-gtk.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/gdu-gtk/gdu-gtk.c b/src/gdu-gtk/gdu-gtk.c
index d49afd7..8659e10 100644
--- a/src/gdu-gtk/gdu-gtk.c
+++ b/src/gdu-gtk/gdu-gtk.c
@@ -677,9 +677,13 @@ gdu_util_dialog_secret_internal (GtkWidget *parent_window,
data->warning_hbox = gtk_hbox_new (FALSE, 12);
image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_INFO, GTK_ICON_SIZE_MENU);
data->warning_label = gtk_label_new (NULL);
+
gtk_box_pack_start (GTK_BOX (data->warning_hbox), image, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (data->warning_hbox), data->warning_label, FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (vbox), data->warning_hbox, FALSE, FALSE, 0);
+ hbox = gtk_hbox_new (FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), data->warning_hbox, FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (hbox), gtk_label_new (" "), FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
g_signal_connect (data->password_entry_new, "changed",
(GCallback) gdu_util_dialog_secret_entry_changed, data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]