diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-16 20:27:16 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-16 20:27:16 -0500 |
| commit | bce4c19fddd35483534933b0db2bdb8d1549b0dd (patch) | |
| tree | 80a53fde60130f16b31b6827c745f9ec60e6ce34 /sysdata_unix.go | |
| parent | a302590ee0a3f8c30d58c63f83d34e6fc1e1868e (diff) | |
Added alternate control style building... mostly...
Diffstat (limited to 'sysdata_unix.go')
| -rw-r--r-- | sysdata_unix.go | 8 |
1 files changed, 7 insertions, 1 deletions
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 |
