X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=info.c;h=11107b1ca91c461eb41245bea72032238305f8fe;hb=e7491d3bf50ad31bbee38abc9da823c9cbdb9cd1;hp=75b34bb782c85da7fbee0bd8a35e2296b857b75f;hpb=e810d211a6235b504c98604e0288cf22b12ec1b8;p=ext%2Fsubsurface.git diff --git a/info.c b/info.c index 75b34bb..11107b1 100644 --- a/info.c +++ b/info.c @@ -98,9 +98,9 @@ void flush_dive_info_changes(struct dive *dive) static void set_combo_box_entry_text(GtkComboBoxEntry *combo_box, const char *text) { GtkEntry *entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(combo_box))); - gtk_combo_box_set_active(GTK_COMBO_BOX(combo_box), 0); + gtk_combo_box_set_active(GTK_COMBO_BOX(combo_box), -1); if (!*text) - text = " "; + gtk_entry_set_text(entry, " "); gtk_entry_set_text(entry, text); }