[ekiga] Fixed a problem with the form dialog gtk+ code : the editable_set label was hidden behind another



commit 7f59b5717a8c2f6341c48c1eb8f59d12ee1cecc0
Author: Julien Puydt <jpuydt newton localdomain>
Date:   Thu Sep 15 21:44:08 2011 +0200

    Fixed a problem with the form dialog gtk+ code : the editable_set label was hidden behind another

 lib/engine/gui/gtk-core/form-dialog-gtk.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
index 3f925c9..a38386d 100644
--- a/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
+++ b/lib/engine/gui/gtk-core/form-dialog-gtk.cpp
@@ -1206,8 +1206,6 @@ FormDialog::editable_set (const std::string name,
 
   EditableSetSubmitter *submitter = NULL;
 
-  grow_fields (advanced);
-
   /* The label */
   label = gtk_label_new (NULL);
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
@@ -1275,11 +1273,13 @@ FormDialog::editable_set (const std::string name,
 
   if (advanced) {
 
+    grow_fields (advanced);
     gtk_table_attach (GTK_TABLE (advanced_fields), label,
 		      0, 2, advanced_rows - 1, advanced_rows,
 		      (GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
 		      (GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
 		      0, 0);
+    grow_fields (advanced);
     gtk_table_attach (GTK_TABLE (advanced_fields), frame,
 		      0, 2, advanced_rows - 1, advanced_rows,
 		      (GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
@@ -1287,11 +1287,13 @@ FormDialog::editable_set (const std::string name,
 		      0, 0);
   } else {
 
+    grow_fields (advanced);
     gtk_table_attach (GTK_TABLE (fields), label,
 		      0, 2, rows - 1, rows,
 		      (GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
 		      (GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
 		      0, 0);
+    grow_fields (advanced);
     gtk_table_attach (GTK_TABLE (fields), frame,
 		      0, 2, rows - 1, rows,
 		      (GtkAttachOptions) (GTK_FILL|GTK_EXPAND),
@@ -1313,9 +1315,7 @@ FormDialog::editable_set (const std::string name,
 		    (GCallback) editable_set_add_value_clicked_cb,
 		    (gpointer) entry);
 
-
   grow_fields (advanced);
-
   if (advanced) {
 
     gtk_table_attach (GTK_TABLE (advanced_fields), hbox,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]