summaryrefslogtreecommitdiff
path: root/sysdata_unix.go
AgeCommit message (Collapse)Author
2014-08-30Out with the old...Pietro Gagliardi
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-01Fixed indeterminate progress bars on GTK+. This specific fix also avoids any ↵Pietro Gagliardi
future panics caused by Go and GTK+ racing by doing the pulsing all on GTK+.
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-26Added Checkbox.SetChecked() and implemented it on GTK+.Pietro Gagliardi
2014-06-25Split Label into a non-aligned standalone label and an aligned regular ↵Pietro Gagliardi
label. Implemented on GTK+. Now to write the test.
2014-06-11Implemented Window.Center() on GTK+.Pietro Gagliardi
2014-06-10More go fmt.Pietro Gagliardi
2014-06-09Had Area.SetSize() explicitly labelled as repainting the whole Area; made ↵Pietro Gagliardi
sure it does that on GTK+ (it already did on Windows and Mac). I think we're ready to declare the API as it stands now stable!
2014-06-09Implemented Area.RepaintAll() on GTK+.Pietro Gagliardi
2014-06-06Made the preferred size of an Area its size on GTK+ as well.Pietro Gagliardi
2014-06-01Changed Unix Area WM_ACTIVATE equivalent handling to use enter-notify-event ↵Pietro Gagliardi
and leave-notify-event instead of focus-in-event and focus-out-event as suggested by tristan in irc.gimp.net/#gtk+.
2014-05-29Checked to see if the previous commit worked after removing the leftover ↵Pietro Gagliardi
Combobox selectIndex() code; it does. Removed the dummy code from the Windows and GTK+ backends as well.
2014-05-23Attempted to add focus change support to the new GTK+ high-order click code ↵Pietro Gagliardi
like we do on Windows; it isn't working quite yet but I'll mark it as a TODO for now.
2014-05-23Added custom double-click/triple-click/higher-order click handling to GTK+ ↵Pietro Gagliardi
Areas.
2014-05-19Removed the extra #cgo directives from the Unix files. cgo collects ↵Pietro Gagliardi
directives from ALL files, rather than using each file's directive individually, so having them combined like this is pointless. Instead, the #cgo directives are (or is, since there's only one) in uitask_unix.go. Will do the same for Mac next; this will help since we're going to add a CFLAGS value afterward.
2014-05-17Found a method in NSArrayController via Stack Overflow which lets me ↵Pietro Gagliardi
suppress selection-changing behavior on NSTableView inserts; use that on Listbox in Mac OS X. This means sysData.selectIndices() and its Mac OS X implementation can (and has) gone away, clearing TODOs on Windows and Unix by extension.
2014-04-27Removed TODO about returning container before connecting signals in ↵Pietro Gagliardi
sysdata_unix.go; nothing will actually be sent until we show the widgets anyway.
2014-04-15Settled window sizing for GTK+; moved the respective TODO to future plans.Pietro Gagliardi
2014-04-12Fixed Listboxes on Mac OS X having an initial selection.Pietro Gagliardi
2014-04-12Fixed Comboboxes on Mac OS X having an initial selection. This also lays the ↵Pietro Gagliardi
groundwork for adding Combobox/Listbox.Select() as a public function...
2014-04-08Slowed GTK+ indeterminate Progressbars down.Pietro Gagliardi
2014-04-01Removed the initText parameter from sysData.make() and changed all ↵Pietro Gagliardi
invocations to call sysData.setText() separately; this avoids the need to check if sysData.setText() is valid. Also implemented that on GTK+.
2014-04-01Got rid of gtkWidget and changed to using *C.GtkWidget everywhere. This gets ↵Pietro Gagliardi
rid of some of the casting functions and invocations of said functions, and only adds sysdata_unix.go to the cgo list.
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