X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-value-entry.c;h=322cb3a3b4eb13cfea28f9f05a0792b96ac7d47f;hb=e79b9dda31cb2787df235503759a183540d9b413;hp=85dbaa093cb31134a50ca04c50a12622290bdaca;hpb=3a03985ae49e050f97e103f7cc0c5546dfa5d80c;p=pspp diff --git a/src/ui/gui/psppire-value-entry.c b/src/ui/gui/psppire-value-entry.c index 85dbaa093c..322cb3a3b4 100644 --- a/src/ui/gui/psppire-value-entry.c +++ b/src/ui/gui/psppire-value-entry.c @@ -216,6 +216,7 @@ psppire_value_entry_init (PsppireValueEntry *obj) obj->format = F_8_0; obj->encoding = NULL; obj->cur_value = NULL; + gtk_combo_box_entry_set_text_column (GTK_COMBO_BOX_ENTRY (obj), COL_LABEL); g_signal_connect (buffer, "notify::text", G_CALLBACK (psppire_value_entry_text_changed), obj); @@ -241,7 +242,6 @@ psppire_value_entry_new (void) static void psppire_value_entry_refresh_model (PsppireValueEntry *obj) { - GtkWidget *entry = gtk_bin_get_child (GTK_BIN (obj)); GtkTreeModel *model; GtkTreeModel *old_model; @@ -280,8 +280,6 @@ psppire_value_entry_refresh_model (PsppireValueEntry *obj) } gtk_combo_box_set_model (GTK_COMBO_BOX (obj), model); - gtk_combo_box_entry_set_text_column (GTK_COMBO_BOX_ENTRY (obj), COL_LABEL); - gtk_widget_set_sensitive (entry, model != NULL); } void