[libgda/LIBGDA_4.2] GdauiCombo correction



commit a6cd608919246e855f0e180134f6b35c1f7eccce
Author: Vivien Malerba <malerba gnome-db org>
Date:   Thu Mar 17 20:37:06 2011 +0100

    GdauiCombo correction

 libgda-ui/gdaui-combo.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgda-ui/gdaui-combo.c b/libgda-ui/gdaui-combo.c
index e1e1f50..96adc12 100644
--- a/libgda-ui/gdaui-combo.c
+++ b/libgda-ui/gdaui-combo.c
@@ -1,6 +1,5 @@
-/* GNOME DB library
- *
- * Copyright (C) 1999 - 2010 The Free Software Foundation
+/*
+ * Copyright (C) 1999 - 2011 The Free Software Foundation
  *
  * AUTHORS:
  *      Rodrigo Moya <rodrigo gnome-db org>
@@ -374,6 +373,8 @@ gdaui_combo_set_model (GdauiCombo *combo, GdaDataModel *model, gint n_cols, gint
 	if (combo->priv->store) {
 		g_object_unref (G_OBJECT (combo->priv->store));
 		combo->priv->store = NULL;
+		gtk_combo_box_set_model (GTK_COMBO_BOX (combo), NULL);
+		gtk_combo_box_set_active (GTK_COMBO_BOX (combo), -1);
 	}
 	if (combo->priv->model) {
 		g_object_unref (combo->priv->model);



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