summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
AgeCommit message (Collapse)Author
2014-03-23Fixed the shrinking not working: the Cairo clip rect apparently can fall ↵Pietro Gagliardi
outside the actual size of the widget. (I did notice this before.)
2014-03-23Added Area resizing. Everything mostly works, but not making things smaller...Pietro Gagliardi
2014-03-18Added the framework code for handling keyboard events in GTK+ Areas. Oh ↵Pietro Gagliardi
boy... this is gonna hurt (as I will describe shortly).
2014-03-15Added (untested) GTK+ implementation of Area's mouse events.Pietro Gagliardi
2014-03-15Allowed GTK+ windows to be resized smaller than the size request of the ↵Pietro Gagliardi
controls within.
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-12Separated file creation dates from the package comment.Pietro Gagliardi
2014-03-12Added GTK+ indeterminate ProgressBars.Pietro Gagliardi
2014-03-11Removed error returns from Combobox.Delete(), Listbox.Delete(), and ↵Pietro Gagliardi
sysData.delete(), since they are no longer used. Updated the TODO file to mark this issue closed.
2014-03-10Fixed compiler errors in the previous few commits.Pietro Gagliardi
2014-03-10Removed error returns from sysData.setText() now that we no longer care.Pietro Gagliardi
2014-03-10Whoops, forgot Checkbox.Text() on GTK+. Fixed.Pietro Gagliardi
2014-03-09Removed now-unused error returns from sysData.show() and sysData.hide().Pietro Gagliardi
2014-03-09Split sysData.show() into separate show() and firstShow() to accomodate ↵Pietro Gagliardi
Windows's differing rules for first-time window show; this will also allow me to remove the error returns from sysData.show() and sysData.hide() (later).
2014-03-09Steamrolled errors under panic() in Combobox/Listbox.Append()/InsertBefore() ↵Pietro Gagliardi
because screw Windows being different.
2014-03-09Removed gListboxSelected; it was never being called anyway (only ↵Pietro Gagliardi
gListboxSelectedMulti is; Windows still uses selectedIndex() for Listbox because of differences in how multi-selection listboxes are handled there and Mac OS X never had this function written to begin with).
2014-03-08Added Combobox/Listbox.Len() and its GTK+ implementation.Pietro Gagliardi
2014-03-03Fixed Mac OS X control placement flipping. This is done by passing the ↵Pietro Gagliardi
height of the window around setRect() calls to avoid polling the content view frame each time.
2014-03-03Removed crash guards from the Mac OS X sysData code. Also removed some ↵Pietro Gagliardi
leftover ones from the GTK+ code.
2014-02-25Added password entry fields; they are the alternate mode of LineEdit.Pietro Gagliardi
2014-02-25Added GTK+ implementation of ProgressBar and added a ProgressBar to the test ↵Pietro Gagliardi
program.
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-18Made event dispatch asynchronous to avoid deadlocks; right now events that ↵Pietro Gagliardi
cannot be dispatched get dropped.
2014-02-17Removed all //package ui comments.Pietro Gagliardi
2014-02-17Fixed the GTK+ crashes (I think) by making resizes synchronous. Since all ↵Pietro Gagliardi
control resizes happen on the UI thread anyway, we don't need to dispatch back; just call the resizing functions directly. Windows gets this fix too for consistency (and also because it gets rid of the only asynchronous oddity in the system).
2014-02-16Added GTK+ listboxes... sort of. This whole thing is so broken it's funny.Pietro Gagliardi
2014-02-16Added GTK+ Labels.Pietro Gagliardi
2014-02-16Fixed layout failure... for now.Pietro Gagliardi
2014-02-16Added GTK+ LineEdit. It appears there's something weird happening now...Pietro Gagliardi
2014-02-16Added alternate control style building... mostly...Pietro Gagliardi
2014-02-16Added crash guard for making alternates (to get editable comboboxes).Pietro Gagliardi
2014-02-16...derp, it was my crash guard failing.Pietro Gagliardi
2014-02-16Added GTK+ comboboxes. ...and THESE aren't being positioned properly, sigh...Pietro Gagliardi
2014-02-16Added the GTK+ equivalent of Window.Title() and Button.Text() in preparation ↵Pietro Gagliardi
for adding the GTK+ implementation of Combobox.
2014-02-16Added Checkbox to GTK+. Also added a TODO about crashes.Pietro Gagliardi
2014-02-16Removed some debugging prints.Pietro Gagliardi
2014-02-16Added window (and thus control) resizing. Other bugs have been fixed along ↵Pietro Gagliardi
the way.
2014-02-16[GTK+] Added buttons. Things aren't quite being positioned properly yet ↵Pietro Gagliardi
though...
2014-02-16Added cgo-safe callback code for GTK+ signals. GTK+ signals work!Pietro Gagliardi
2014-02-16Added basic signal connection. I'm going to need to build a different ↵Pietro Gagliardi
callback system, though...
2014-02-16Added the beginning of the Unix (GTK+) implementation.Pietro Gagliardi