[libgda] GdaBrowser: another table's properties display correction



commit bdd3b714eae231df0a694a9f3c96129252ef8235
Author: Vivien Malerba <malerba gnome-db org>
Date:   Thu Sep 2 22:31:25 2010 +0200

    GdaBrowser: another table's properties display correction

 tools/browser/schema-browser/table-columns.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tools/browser/schema-browser/table-columns.c b/tools/browser/schema-browser/table-columns.c
index cba6eb4..c2f435d 100644
--- a/tools/browser/schema-browser/table-columns.c
+++ b/tools/browser/schema-browser/table-columns.c
@@ -295,6 +295,9 @@ meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableColumns *
 						cvalue = gda_data_model_get_value_at (model, 0, i, NULL);
 						if (!current_value || 
 						    gda_value_compare (cvalue, current_value)) {
+							if (current_value)
+								gtk_text_buffer_insert (tbuffer, &current,
+											"\n\n", -1);
 							gtk_text_buffer_insert_with_tags_by_name (tbuffer,
 												  &current, 
 												  _("Unique constraint"), -1,
@@ -307,8 +310,8 @@ meta_changed_cb (BrowserConnection *bcnc, GdaMetaStruct *mstruct, TableColumns *
 						cvalue = gda_data_model_get_value_at (model, 1, i, NULL);
 						gtk_text_buffer_insert (tbuffer, &current, 
 									g_value_get_string (cvalue), -1);
-						gtk_text_buffer_insert (tbuffer, &current, "\n\n", -1);
 					}
+					gtk_text_buffer_insert (tbuffer, &current, "\n\n", -1);
 				}
 				g_object_unref (model);
 			}



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