Added alternate control style building... mostly...
This commit is contained in:
parent
a302590ee0
commit
bce4c19fdd
|
@ -79,7 +79,9 @@ var classTypes = [nctypes]*classData{
|
||||||
},
|
},
|
||||||
c_combobox: &classData{
|
c_combobox: &classData{
|
||||||
make: gtk_combo_box_text_new,
|
make: gtk_combo_box_text_new,
|
||||||
makeAlt: gtk_combo_box_text_new_with_entry,
|
// TODO creating an editable combobox causes GtkFixed to fail spectacularly for some reason
|
||||||
|
// makeAlt: gtk_combo_box_text_new_with_entry,
|
||||||
|
makeAlt: gtk_combo_box_text_new,
|
||||||
// TODO setText
|
// TODO setText
|
||||||
text: gtk_combo_box_text_get_active_text,
|
text: gtk_combo_box_text_get_active_text,
|
||||||
append: gtk_combo_box_text_append_text,
|
append: gtk_combo_box_text_append_text,
|
||||||
|
@ -108,6 +110,10 @@ func (s *sysData) make(initText string, window *sysData) error {
|
||||||
ret := make(chan *gtkWidget)
|
ret := make(chan *gtkWidget)
|
||||||
defer close(ret)
|
defer close(ret)
|
||||||
uitask <- func() {
|
uitask <- func() {
|
||||||
|
if s.alternate {
|
||||||
|
ret <- ct.makeAlt()
|
||||||
|
return
|
||||||
|
}
|
||||||
ret <- ct.make()
|
ret <- ct.make()
|
||||||
}
|
}
|
||||||
s.widget = <-ret
|
s.widget = <-ret
|
||||||
|
|
Loading…
Reference in New Issue