Pietro Gagliardi
|
11daae4a63
|
Resolved the NSWindowDelegate issue and added an explicit NSApplicationDelegate specifier just to be safe; thanks to Zorg__ in irc.freenode.net/#macdev for explaining (it's an issue with NSApp specifically).
|
2014-07-20 17:27:56 -04:00 |
Pietro Gagliardi
|
6da105da56
|
Resolved NSMakeRect() argument casting TODO in sizing_darwin.m.
|
2014-07-20 14:56:25 -04:00 |
Pietro Gagliardi
|
672efd5246
|
Implemented Window.Close() on Mac OS X, settling both that TODO and the one about making sure Window.Close() works as documented on all platforms.
|
2014-07-20 13:01:46 -04:00 |
Pietro Gagliardi
|
5fa0950112
|
Verified that Window.Close() works as documented on GTK+.
|
2014-07-19 23:36:11 -04:00 |
Pietro Gagliardi
|
fa5b2012d0
|
Oops, NewButton() should return Button, not the backend type. Fixed.
|
2014-07-19 16:47:19 -04:00 |
Pietro Gagliardi
|
214dc6cd5c
|
Ah, fixed the stalling: logic error in the test program itself.
|
2014-07-19 10:16:00 -04:00 |
Pietro Gagliardi
|
627abfd593
|
Fixed issuing in the new system. Now to figure out why it stalls...
|
2014-07-19 10:10:52 -04:00 |
Pietro Gagliardi
|
e73e7ab733
|
Fixed more conversion kinks. Now for a major change...
|
2014-07-19 10:07:42 -04:00 |
Pietro Gagliardi
|
32061353a1
|
Updated the test program to be Request-less. Now to test...
|
2014-07-19 09:58:57 -04:00 |
Pietro Gagliardi
|
104337188f
|
Removed Request completely, also updating the uitask files. Also renamed xperform to doissue for consistency.
|
2014-07-19 09:57:01 -04:00 |
Pietro Gagliardi
|
48c5055eb9
|
Started dropping the whole request/response system because it fell apart... time to make a ui.Do(func(){ ... })
|
2014-07-19 09:44:32 -04:00 |
Pietro Gagliardi
|
47c0f573a9
|
Fixed a slight channel leak in event.fire().
|
2014-07-18 22:56:30 -04:00 |
Pietro Gagliardi
|
08f5c42639
|
Added a test case for Window.Close().
|
2014-07-18 22:30:07 -04:00 |
Pietro Gagliardi
|
abb5b0c1d7
|
Decided not to use removeFromSuperviewWithoutNeedingRedraw at mikeash in irc.freenode.net/#macdev's suggestion (he basically said the documentation's description of the difference is "gibberish" and that I shouldn't need it). Let's just hope that stays the case...
|
2014-07-18 21:20:21 -04:00 |
Pietro Gagliardi
|
2c3c200df8
|
Settled TODO about cairo version macros.
|
2014-07-18 20:46:51 -04:00 |
Pietro Gagliardi
|
847690bb10
|
Fixed window resizing in GTK+ acting wonky AND several related TODOs to boot!
|
2014-07-18 19:36:29 -04:00 |
Pietro Gagliardi
|
58673a614c
|
Made the previous commit more robust.
|
2014-07-18 15:19:55 -04:00 |
Pietro Gagliardi
|
b56f60c04c
|
Fixed control positioning on initial window show on Mac OS X.
|
2014-07-18 15:16:41 -04:00 |
Pietro Gagliardi
|
6bc4425915
|
Scrapped Window.SetSize() and Window.Center() (for now?).
|
2014-07-18 14:07:12 -04:00 |
Pietro Gagliardi
|
351c7cd9b2
|
Added the standard control fonts to the Mac OS X backend. The GTK+ backend is fine as it stands.
|
2014-07-18 11:47:48 -04:00 |
Pietro Gagliardi
|
f64f2781ce
|
Added (and applied) standard Windows fonts.
|
2014-07-18 11:20:18 -04:00 |
Pietro Gagliardi
|
489ce0a053
|
Added #include "_cgo_export.h" to files that needed it and fixed a cast error in controls_windows.c that that revealed. Anyway buttons work now on all platforms, woo :D
|
2014-07-18 00:29:15 -04:00 |
Pietro Gagliardi
|
d2f09a0222
|
Fixed all the remaining compiler errors. C conversion works!
|
2014-07-18 00:22:21 -04:00 |
Pietro Gagliardi
|
7c6fa3b2fd
|
Fixed assorted typos in some of the new C files.
|
2014-07-17 23:56:16 -04:00 |
Pietro Gagliardi
|
b174ed985c
|
Added include guards to winapi_windows.h because of cgo including the file multiple times.
|
2014-07-17 23:52:07 -04:00 |
Pietro Gagliardi
|
e2be30c6e4
|
Changed the GTK+ files so they would not compile on Windows; this is needed now that the Windows build uses cgo too.
|
2014-07-17 23:50:14 -04:00 |
Pietro Gagliardi
|
501b6a3a34
|
Fixed Go compiler errors in the new Windows code; round 1.
|
2014-07-17 23:48:44 -04:00 |
Pietro Gagliardi
|
70e45bef57
|
Removed Windows constant generation code as we will no longer need it.
|
2014-07-17 23:45:52 -04:00 |
Pietro Gagliardi
|
6a5a28d917
|
Migrated common_windows.go to C. Now to nuke unneeded files and fix compiler errors...
|
2014-07-17 23:45:12 -04:00 |
Pietro Gagliardi
|
d8f302f157
|
Some Unicode-related fixups and additions in the new Windows code.
|
2014-07-17 23:14:22 -04:00 |
Pietro Gagliardi
|
0dc1538002
|
Migrated window_windows.go to C.
|
2014-07-17 23:11:16 -04:00 |
Pietro Gagliardi
|
29b80f7542
|
Migrated sizing_windows.go to C.
|
2014-07-17 22:47:04 -04:00 |
Pietro Gagliardi
|
2c025a97ef
|
Migrated init_windows.go to C.
|
2014-07-17 22:33:03 -04:00 |
Pietro Gagliardi
|
7e40e9fe28
|
Migrated controls_windows.go to C.
|
2014-07-17 22:16:32 -04:00 |
Pietro Gagliardi
|
8fee588a1d
|
Migrated comctl32_windows.go to C.
|
2014-07-17 20:05:47 -04:00 |
Pietro Gagliardi
|
0adac4d3ca
|
Began the drudgery of converting all the Windows code to use cgo, because I'm not going to wait to debug this smashed stack.
|
2014-07-17 19:36:24 -04:00 |
Pietro Gagliardi
|
257fd8f07c
|
Added the code for the subclassing. And it smashes the stack. Wonderful...
|
2014-07-17 18:36:44 -04:00 |
Pietro Gagliardi
|
51a3c0e379
|
Migrated the comctl32.dll code and added all the window subclassing stuff. Starting to consider just doing what I'm doing with the Mac OS X backend and just using cgo...
|
2014-07-17 18:04:51 -04:00 |
Pietro Gagliardi
|
19f7b2946a
|
Laid down the framework for control events on Windows. The only problem left is that we need to use functions from comctl32.dll, so it's time to bring that blob of code back.
|
2014-07-17 15:10:26 -04:00 |
Pietro Gagliardi
|
1a712d4064
|
Implemented button clicking on GTK+.
|
2014-07-17 12:14:38 -04:00 |
Pietro Gagliardi
|
e4b379f84a
|
Added button click events to the Mac OS X backend.
|
2014-07-17 12:02:39 -04:00 |
Pietro Gagliardi
|
659bc03f17
|
Migrated control sizing code for Mac OS X.
|
2014-07-17 11:24:58 -04:00 |
Pietro Gagliardi
|
819caea422
|
Re-added the Windows sizing code.
|
2014-07-16 22:31:48 -04:00 |
Pietro Gagliardi
|
a253f39d68
|
Ported over the sizing framework from the old package and implemented it on the GTK+ backend.
|
2014-07-16 21:30:19 -04:00 |
Pietro Gagliardi
|
1953f2d748
|
Added Button and control adding to the Mac OS X backend.
|
2014-07-16 13:25:09 -04:00 |
Pietro Gagliardi
|
d154a2d74d
|
Added basic control showing to the Windows backend.
|
2014-07-15 22:44:27 -04:00 |
Pietro Gagliardi
|
d6a8a72662
|
Fixed a flaw in the SetControl() for GTK+ Window: it forgot to unparent old children.
|
2014-07-15 22:34:12 -04:00 |
Pietro Gagliardi
|
0ddc060410
|
Refined zregen.sh to accept argumetns and not run the 64-bit generator if the 32-bit one failed.
|
2014-07-15 22:30:42 -04:00 |
Pietro Gagliardi
|
09ed472138
|
Added the beginninig of the Windows Control code.
|
2014-07-15 22:29:45 -04:00 |
Pietro Gagliardi
|
5ebd89984a
|
Added parenting/unparenting of controls to the GTK+ backend and the test program.
|
2014-07-15 20:48:16 -04:00 |