summaryrefslogtreecommitdiff
path: root/gtkcalls_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-06-26Added Checkbox.SetChecked() and implemented it on GTK+.Pietro Gagliardi
2014-06-26Removed the special-casing of GtkLayout to have transparent frames: this ↵Pietro Gagliardi
breaks the Ubuntu GTK+ 3 themes (Ambianace and Radiance) with their correct renderer (see https://github.com/andlabs/ui/pull/19#issuecomment-47273597), and the KDE bug has now been fixed.
2014-06-25Applied the new control sizing system to the GTK+ backend.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-12Converted the GTK+ custom stylesheet to a single string using CSS comments ↵Pietro Gagliardi
because cgo complains about the current one. While I'm at it, also remove the need for the null terminator on that string. Thanks to various people in irc.gimp.net/#gtk+ (grawity, dro|desrt, Company) and irc.freenode.net/#go-nuts and the Gopher Academy Slack.
2014-06-10More go fmt.Pietro Gagliardi
2014-06-05Removed some leftover debugging code from the previous few commits.Pietro Gagliardi
2014-06-05Fixed the GTK+ Combobox sizing issues for real this time.Pietro Gagliardi
2014-06-05Fixed resizing of editable comboboxes in the GTK+ backend. Uneditable ↵Pietro Gagliardi
comboboxes are still an issue, and there's experimental code to try to fix them, but it doesn't work...
2014-06-03And removed that TODO from the previous commit after verifying that such a ↵Pietro Gagliardi
proposal is too risky.
2014-06-03Rewrote a TODO on build tags for the Unix build.Pietro Gagliardi
2014-06-02Resolved command-line handling in the GTK+ backend by not doing it and ↵Pietro Gagliardi
documenting that we don't do it.
2014-06-02Removed leftover TODO about left-justifying labels in GTK+.Pietro Gagliardi
2014-06-02Properly left-aligned Labels in GTK+. Also added a note to decide ↵Pietro Gagliardi
on/document/verify vertical alignment of Labels.
2014-06-02Moved the GtkLayout transparency style to the new init-time style code in ↵Pietro Gagliardi
gtkcalls_unix.go.
2014-06-02Moved the GTK+ ProgressBar style stuff to the Go side and to gtk_init().Pietro Gagliardi
2014-06-02Null-terminated the GtkLayout stylesheet string. This will be handy for ↵Pietro Gagliardi
consolidating all the GTK+ stylesheet stuff into a single Go-side init function. (Thanks to mischief, nsf, and dsal in irc.badnik.net/#go-nuts for confirming that this is valid.)
2014-06-02Made the GTK+ ProgressBar arbitrary resize a program-global style.Pietro Gagliardi
2014-05-24More TODOs.Pietro Gagliardi
2014-05-24Resolved GtkEntry and GtkProgressBar resizing issues; decided from observing ↵Pietro Gagliardi
how they do padding that worrying about padding is counterproductive for now.
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-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-27Cleaned up and got rid of some TODOs in gtkcalls_unix.go.Pietro Gagliardi
2014-04-27Removed TODO from gtkcalls_unix.go about gtk_widget_show_all() working on ↵Pietro Gagliardi
all widgets, not just containers; the documentation explicitly says this.
2014-04-27ui.Go() on GTK+ now reports the reason gtk_init() failed in its error return.Pietro Gagliardi
2014-04-26Changed fromgchar()/togchar() to fromgstr()/togstr() in the GTK+ code; the ↵Pietro Gagliardi
new names are more precise (though they don't operate on GStrings; that's not an issue here though).
2014-04-26Made the C.GoString() part of fromgchar() in gtkcasts_unix.go to reduce the ↵Pietro Gagliardi
number of calls to that function elsewhere (makes things simpler).
2014-04-13Fixed Area test time label weirdness by making Labels truncate their text ↵Pietro Gagliardi
instead of word-wrapping on all platforms. This doesn't explain GTK+/Wayland, alas.
2014-04-09Fixed GTK+ windows having the wrong background.Pietro Gagliardi
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-04-01Moved <stdlib.h> includes in the GTK+ backend to gtk_unix.h; organized that ↵Pietro Gagliardi
file a bit.
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-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-15Allowed GTK+ windows to be resized smaller than the size request of the ↵Pietro Gagliardi
controls within.
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-12Changed the way uitask is dispatched on GTK+ to make event handling not a ↵Pietro Gagliardi
CPU hog.
2014-03-12Added GTK+ indeterminate ProgressBars.Pietro Gagliardi
2014-03-08Added Combobox/Listbox.Len() and its GTK+ implementation.Pietro Gagliardi
2014-03-07Oops, the garbage collector is collecting our GTK+ idle callback too (much ↵Pietro Gagliardi
later than it did the other callbacks). Fixed.
2014-03-05Have ui.Go() return on main() return on Unix.Pietro Gagliardi
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-23Added the preferred widget size basework and its GTK+ implementation.Pietro Gagliardi
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-18Fixed the faults: upon further examination, the garbage collector was eating ↵Pietro Gagliardi
the callback closures!