]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Set "entry-text-column" on our combo boxes.
authorSimon Tatham <anakin@pobox.com>
Sun, 6 Dec 2015 07:23:59 +0000 (07:23 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 6 Dec 2015 07:23:59 +0000 (07:23 +0000)
commit45d5aacbfa416d4c585539a76c5b046c8f143401
tree77ae57a6c1dc49232259deadc1d36c1639fc361c
parent1659cf3f1455f7e3d9c97a66f90a0cfa914d1ce3
Set "entry-text-column" on our combo boxes.

When we provide an editable text box with a drop-down list of useful
preset values, such as the one full of character sets in the
Translation panel, we implement it on GTK 2.4+ as a GtkComboBox
pointing at a two-column GtkListStore, in which the second column is
the actual text (the first being a numeric id). Therefore, we need to
set the "entry-text-column" property to tell GtkComboBox which of
those columns to look in for the value corresponding to the edit-box
text.

Thanks to Robert de Bath for spotting the problem and tracing it as
far as commit 5fa22495c. That commit replaced a widget construction
call via gtk_combo_box_entry_new_with_model() with one using the newer
gtk_combo_box_new_with_model_and_entry(), overlooking the fact that
the former provided the text column number as a parameter, and the
latter didn't.
unix/gtkdlg.c