summaryrefslogtreecommitdiff
path: root/uitask_unix.go
AgeCommit message (Collapse)Author
2015-12-11LET'S GET THIS FINAL REWRITE EVER STARTEDPietro Gagliardi
2014-10-02go fmt. Precursor to bug report filing.Pietro Gagliardi
2014-08-30...in with the new.Pietro Gagliardi
2014-08-30Out with the old...Pietro Gagliardi
2014-07-03Implemented Post() on the GTK+ backend.Pietro Gagliardi
2014-07-03Added the start() function and fixed compilation errors. Everything seems to ↵Pietro Gagliardi
work...
2014-07-03Removed uitask and made the Window creation functions only callable from the ↵Pietro Gagliardi
main thread. This si the first part in the real major change, which bans all concurrent use of the API and provides a Post() function for communication. I don't like this, but it's the only way. Untested.
2014-07-02Moved it all back; the preemptive multitaksing during an event handler kills ↵Pietro Gagliardi
us on all platforms. Going to have to restrict ALL GUI accss to happening from one t hread, so going to need to drop uitask entirely and have just a start() callback for startup code and a post() function for posting requests to windows (like channel sends but into a perpetual buffer).
2014-07-02Moved everything out of the way pending rewrite.Pietro Gagliardi
2014-07-01Removed the gtk_main_quit() kludge from uitask_unix.go; this also removes ↵Pietro Gagliardi
our_idle_callback() and its associated stuff.
2014-07-01Converted the GTK+ backend to use the new uitask. Indeterminate progressbars ↵Pietro Gagliardi
no longer work; this will be fixed soon.
2014-06-30Restored the previous new API. I'm going to change it so that events are ↵Pietro Gagliardi
callbacks rather than using a window handler, but other than that... yeah.
2014-06-30Reverted everything back to the old API.Pietro Gagliardi
2014-06-28Migrated the GTK+ backend to the new API.Pietro Gagliardi
2014-06-10Partial go fmt. Will do the rest over the next few commits. While I'm not ↵Pietro Gagliardi
too happy about it, everyone else uses go fmt, and pull requests will be more convenient if I just do it. (Also do it now, because when I change the Windows backend things are going to change...)
2014-05-19Moved gtk_main() such that uitask_unix.go calls it directly via cgo. This is ↵Pietro Gagliardi
in preparation for the next two commits, which will remove the #cgo directives from all files except the uitask_*.go files, since they're being concatenated across files.
2014-04-27ui.Go() on GTK+ now reports the reason gtk_init() failed in its error return.Pietro Gagliardi
2014-03-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-12Changed the way uitask is dispatched on GTK+ to make event handling not a ↵Pietro Gagliardi
CPU hog.
2014-03-05Have ui.Go() return on main() return on Unix.Pietro Gagliardi
2014-03-01Major code restructure to allow Cocoa to work correctly. Cocoa requires that ↵Pietro Gagliardi
the application loop run on the very first OS thread created, not just an any ordinary thread. To support this, your code must now be run by the UI init code. Windows and Unix builds still work fine; Mac OS X fails for reasons I now have to debug.
2014-02-19Moved to a proper package; main() is now a test and go test -c is used to ↵Pietro Gagliardi
build. Once I iron out a bug with Windows event handling, I'll add a README.
2014-02-17Removed all //package ui comments.Pietro Gagliardi
2014-02-17Added GTK+ message boxes.Pietro Gagliardi
2014-02-16Cleaned up the idle callback code.Pietro Gagliardi
2014-02-16Added the beginning of the Unix (GTK+) implementation.Pietro Gagliardi