[gnome-nettool/gnome-2-32] Fix history initialization in hostname comboboxentry



commit 57ba12c2554cc9615532be5cebd58bbc1fdc789e
Author: GermÃn PÃo-CaamaÃo <gpoo gnome org>
Date:   Wed Jul 13 00:10:32 2011 -0700

    Fix history initialization in hostname comboboxentry
    
    Signed-off-by: GermÃn PÃo-CaamaÃo <gpoo gnome org>

 src/gn-combo-history.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/gn-combo-history.c b/src/gn-combo-history.c
index ccfc28d..e98d517 100644
--- a/src/gn-combo-history.c
+++ b/src/gn-combo-history.c
@@ -290,7 +290,8 @@ gn_combo_history_set_popdown_strings (GnComboHistory *history)
 	GtkTreeIter   iter;
 	GSList *items;
 	gchar  *text;
-	gint    text_column, i;
+	gint    i;
+	gint    text_column = 0;
 
 	g_return_if_fail (GN_IS_COMBO_HISTORY (history));
 	g_return_if_fail (GTK_IS_COMBO_BOX (history->priv->combo));
@@ -300,15 +301,14 @@ gn_combo_history_set_popdown_strings (GnComboHistory *history)
 	if (!model)
 		return;
 
-	text_column = gtk_combo_box_entry_get_text_column (
-							   GTK_COMBO_BOX_ENTRY (history->priv->combo));
+	gtk_combo_box_entry_set_text_column (GTK_COMBO_BOX_ENTRY (history->priv->combo), text_column);
 
 	gtk_list_store_clear (GTK_LIST_STORE (model));
-	   
+
 	if (! history->priv->items) {
-             
+
 		gtk_combo_box_set_active (GTK_COMBO_BOX (history->priv->combo), -1);
-			 
+
 		return;
 	}
 



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