From bce4c19fddd35483534933b0db2bdb8d1549b0dd Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 16 Feb 2014 20:27:16 -0500 Subject: [PATCH] Added alternate control style building... mostly... --- sysdata_unix.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sysdata_unix.go b/sysdata_unix.go index d1dc323..00c4ee5 100644 --- a/sysdata_unix.go +++ b/sysdata_unix.go @@ -79,7 +79,9 @@ var classTypes = [nctypes]*classData{ }, c_combobox: &classData{ 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 text: gtk_combo_box_text_get_active_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) defer close(ret) uitask <- func() { + if s.alternate { + ret <- ct.makeAlt() + return + } ret <- ct.make() } s.widget = <-ret