summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-03-17Changed the new resizing code so that it uses the same allocated slice per ↵Pietro Gagliardi
window instead of making a new one to store all the resize requests each time.
2014-03-17Er oh the crash was because I was still using the lock-friendly code. Will ↵Pietro Gagliardi
still apply the change to memory allocation because memory reuse.
2014-03-17Changed window resizes so that the actual Control.setRect() functions ↵Pietro Gagliardi
appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe.
2014-03-17Quick README fixupPietro Gagliardi
2014-03-17Put the Label that changed each second in the main test.Pietro Gagliardi
2014-03-17Elaborated in the README.Pietro Gagliardi
2014-03-17Dumped the mutex locks from the other controls and elaborated/asked for help ↵Pietro Gagliardi
in the README.
2014-03-17Removed the areasnafu.md now that I have a solution... reverting back to the ↵Pietro Gagliardi
channel-based approach re-introduced the Paint deadlock, so it was still there all along.
2014-03-17Removed the mutexes from Labels and Areas because I'm at my wits end about ↵Pietro Gagliardi
settling the deadlock between window resizing and setting a Label's text.
2014-03-16Updated the test program to the new AreaHandler interface. The deadlock ↵Pietro Gagliardi
still happens... just not so easily... so it's elsewhere...
2014-03-16Changed Area to use a delegate handler object that implements the new ↵Pietro Gagliardi
AreaHandler interface for handling events. Also updated the GTK+ backend with this change, and made a few more tweaks to the documentation in area.go.
2014-03-16Added a document explaining my Area woes.Pietro Gagliardi
2014-03-16Added a time display to the Area test for testing deadlocks that will happen ↵Pietro Gagliardi
when Area becomes more feature-filled... it appears one has now appeared when resizing the window...
2014-03-16Split out includes of <gtk/gtk.h> into a new header file so the GTK+ ↵Pietro Gagliardi
versioning macros can be included in all Go files, not just area_unix.go.
2014-03-16More TODOs.Pietro Gagliardi
2014-03-16Attempted to fix non-handling of the Alt key by having the GDK window's ↵Pietro Gagliardi
display's keymap used instead; it didn't work.
2014-03-15Clarified that MouseEvent.Held will not include Down/Up.Pietro Gagliardi
2014-03-15Added a test of the mouse event handling.Pietro Gagliardi
2014-03-15Added note in MouseEvent documentation about both Down and Up being 0 ↵Pietro Gagliardi
representing mouse movement.
2014-03-15Added (untested) GTK+ implementation of Area's mouse events.Pietro Gagliardi
2014-03-15Added portable code for Area's MouseEvent.Pietro Gagliardi
2014-03-15More mouse event planning. I now have enough figured out to implement on GTK+.Pietro Gagliardi
2014-03-15Documented the details of Area's coordinate system.Pietro Gagliardi
2014-03-15More mouse event planning and TODOs.Pietro Gagliardi
2014-03-15More mouse handling planning.Pietro Gagliardi
2014-03-15More mouse event handling planning.Pietro Gagliardi
2014-03-15Changed the Go 1.3 comment in README to point to go tip since it was ↵Pietro Gagliardi
confusing some people.
2014-03-15Allowed GTK+ windows to be resized smaller than the size request of the ↵Pietro Gagliardi
controls within.
2014-03-15Began to plan out what I need for mouse events.Pietro Gagliardi
2014-03-15More TODOs.Pietro Gagliardi
2014-03-15Added a slightly more meaningful test: draw an Image in an area.Pietro Gagliardi
2014-03-14Actually committed the rectangle to the Area. Area drawing on GTK+ implemented!Pietro Gagliardi
2014-03-14Provided a way to connect child widget signals in the GTK+ sysData and ↵Pietro Gagliardi
connected Area to draw. I think I'm getting the wrong child widget, though...
2014-03-14Hacked around the cairo issue for now; hooked everything together and fixed ↵Pietro Gagliardi
a few things. Added the Area test to the test program. Now to just hook up the draw event.
2014-03-14Major overhaul of the way GTK+ events are handled. Closures that perform ↵Pietro Gagliardi
events are no longer generated; instead all events are given to fixed, compile-time, cgo-exported callback functions that take the sysData as user data. This saves memory (we no longer need to generate closures and we no longer have to save them elsewhere to keep them from being garbage collected) and makes the top of sysdata_unix.go slightly cleaner, but it moves the code for handling UI events into callbacks_unix.go. This is needed for Area, in which we need to feed the sysData to an event connected to a subwidget instead of the main widget returned.
2014-03-14Added Area support in sysdata.go so the package can compile again. Now to do ↵Pietro Gagliardi
that big change mentioned in the previous commit: overhaul of the GTK+ signal system.
2014-03-14Added the GTK+ implementation of Area. It's not enabled yet due to cgo bugs, ↵Pietro Gagliardi
and there's some extra work needed (started here) to tie this in...
2014-03-14Added the portable code for Area.Pietro Gagliardi
2014-03-14More Area planning. I think I now have all the info I need...Pietro Gagliardi
2014-03-14More Area planning and TODOs.Pietro Gagliardi
2014-03-14More Area planning.Pietro Gagliardi
2014-03-14More Area planning.Pietro Gagliardi
2014-03-14More Area API planning.Pietro Gagliardi
2014-03-14More Area planning doc fixups.Pietro Gagliardi
2014-03-14More Area planning document changes.Pietro Gagliardi
2014-03-14Quick Area planning fixes.Pietro Gagliardi
2014-03-14More Area planning and TODOs.Pietro Gagliardi
2014-03-13More Area planning.Pietro Gagliardi
2014-03-13Updated Area planning to indicate to Cocoa that alpha values are not ↵Pietro Gagliardi
premultiplied.
2014-03-13More Area planning.Pietro Gagliardi