Commit Graph

936 Commits

Author SHA1 Message Date
Pietro Gagliardi 4a0e231247 Resolved uiEntryOnChanged() stuff in the last few commits; marked as such in TODO.md. 2015-05-09 21:53:19 -04:00
Pietro Gagliardi 4954d608f4 Got rid of a stray debugging line in windows/button.c. 2015-05-09 21:19:06 -04:00
Pietro Gagliardi 7bdc50c25a Inhibited uiEntryOnChanged() with uiEntrySetText() on Windows. 2015-05-09 21:18:27 -04:00
Pietro Gagliardi b08e8f36d4 Inhibited uiEntryOnChanged() with uiEntrySetText() on GTK+. 2015-05-09 21:05:51 -04:00
Pietro Gagliardi 9500f25b62 Added a test to make sure uiEntryOnChanged() isn't triggered by uiEntrySetText(). 2015-05-09 21:01:32 -04:00
Pietro Gagliardi 349d54b2f1 More commentary and TODOs about the previous commit(s). 2015-05-09 16:04:54 -04:00
Pietro Gagliardi bd4716c949 Started code for handling WM_QUERYENDSESSION and its console equivalent. 2015-05-09 14:22:51 -04:00
Pietro Gagliardi 03cf0845ef Quick adjustment to the test program to handle a case I didn't think of until now (our uiUninit() unintentionally quitting the program; who knows what releasing NSApp will do?). 2015-05-09 13:29:39 -04:00
Pietro Gagliardi 4122777505 Got rid of the TODOs that we just resolved. 2015-05-09 10:56:25 -04:00
Pietro Gagliardi 5e258c0c48 Implemented the Quit menu item shouldQuit() logic on Windows. 2015-05-09 10:53:38 -04:00
Pietro Gagliardi 5ef355f28f Implemented the ShouldQuit() stuff for the Quit menu item on the GTK+ backend. 2015-05-09 10:50:03 -04:00
Pietro Gagliardi c062d2d0b5 Got rid of darwin/main.m and moved darwin/init.m in its place. The GTK+ backend won't need any of the should quit work; only the Quit item needs work and that shouldn't take too long. The Windows backend needs WM_QUERYENDSESSION support. 2015-05-09 10:24:07 -04:00
Pietro Gagliardi 2b83300e0b Implemented the quitting logic on OS X. Now I can get rid of darwin/main.m and move darwin/init.m in its place. 2015-05-09 10:18:19 -04:00
Pietro Gagliardi 4e9fa46aec Added a test for uiOnShouldQuit(). 2015-05-09 10:12:02 -04:00
Pietro Gagliardi 8032c24f74 Implemented the should quit logic on Mac OS X. The actual new quitting logic isn't in yet; that will wait for tests. 2015-05-09 10:05:24 -04:00
Pietro Gagliardi c395cdd2fd Added uiOnShouldQuit() and its common code. 2015-05-09 09:50:23 -04:00
Pietro Gagliardi 3d714e03c1 Laid down the scaffolding for application termination on Mac OS X. 2015-05-09 00:37:24 -04:00
Pietro Gagliardi 86a4b0a7ba More expository comments and TODOs. 2015-05-08 20:34:57 -04:00
Pietro Gagliardi a516839e9d Stale and just-resolved TODO cleanup. 2015-05-08 20:32:17 -04:00
Pietro Gagliardi f47c8172e1 Implemented uninitMenus() on Mac OS X. 2015-05-08 20:31:19 -04:00
Pietro Gagliardi 2ec8fb8589 Fixed a typo. 2015-05-08 20:24:53 -04:00
Pietro Gagliardi ada7608c14 Added menu tracking to the OS X backend. This is needed for uninitMenus(). 2015-05-08 19:33:51 -04:00
Pietro Gagliardi cf89124be5 Fixed allocation tracking on OS X. 2015-05-08 18:54:42 -04:00
Pietro Gagliardi cc1491d1a7 More TODOs. 2015-05-08 18:02:02 -04:00
Pietro Gagliardi c079e43784 Somewhat implemented uninitAlloc() on OS X. 2015-05-08 17:51:05 -04:00
Pietro Gagliardi 33f41d6c37 Implemented the allocation type stuff on OS X. 2015-05-08 17:29:36 -04:00
Pietro Gagliardi a6c86cc863 More Windows uninit stuff. 2015-05-08 17:17:03 -04:00
Pietro Gagliardi 3f3191ea7a More Windows uiUninit() implementation. 2015-05-08 15:01:23 -04:00
Pietro Gagliardi 04923399fe Implemented uninitMenus() on Windows. 2015-05-08 14:23:22 -04:00
Pietro Gagliardi d43c8b5584 Fixed some latent bugs in unix/menu.c. 2015-05-08 14:14:05 -04:00
Pietro Gagliardi 85ca2a0901 Wrote uninitAlloc() on Windows. 2015-05-08 14:05:16 -04:00
Pietro Gagliardi b60f17ee5a Added type names to the memory allocator on Windows. More TODOs. 2015-05-08 10:34:59 -04:00
Pietro Gagliardi 53a4eefe2a Fixed a memory leak in ptrarray.c. 2015-05-08 10:25:58 -04:00
Pietro Gagliardi 5cf19dcc17 Added the type names back to the allocators. Implemented on GTK+ only for now. 2015-05-08 10:24:03 -04:00
Pietro Gagliardi 057c6d0cfd Implemented menu uninit on GTK+. 2015-05-08 10:17:33 -04:00
Pietro Gagliardi dc7274c067 Fixed a bug in unix/alloc.c. 2015-05-07 23:35:43 -04:00
Pietro Gagliardi f544414299 Added allocation tracking to the GTK+ backend. 2015-05-07 23:10:19 -04:00
Pietro Gagliardi 3af991651d Changed box.c to use ptrArray for maintaining controls. This also fixes crashes in uiControlDestroy() due to not removing the controls from the box's list and unparenting causing an update. 2015-05-07 22:52:27 -04:00
Pietro Gagliardi e6e1d7ef6e Changed uiBox's controls array to an array of pointers. This is transitional; we move it to ptrArray next. 2015-05-07 22:36:32 -04:00
Pietro Gagliardi 27d6994bdc Implemented stub uiUninit()s. 2015-05-07 22:32:17 -04:00
Pietro Gagliardi 560850dbb9 Added a uiUninit() function. 2015-05-07 22:28:18 -04:00
Pietro Gagliardi 2200cd4394 TODO management. 2015-05-07 21:07:58 -04:00
Pietro Gagliardi e19f52f542 Made Unix uiTab scrollable. 2015-05-07 20:33:09 -04:00
Pietro Gagliardi 4f19b9af5a Added a cbSize field to uiInitOptions. 2015-05-07 20:26:56 -04:00
Pietro Gagliardi 6c9a122a7d Changed the default uiWindowOnClosing() behavior. Decided to keep the int return. 2015-05-07 20:01:17 -04:00
Pietro Gagliardi 553941a5dd More TODO rearranging. 2015-05-07 19:55:42 -04:00
Pietro Gagliardi 34f55321e0 Added a [libui] and a newline to the message printed by complain(). 2015-05-07 19:34:45 -04:00
Pietro Gagliardi 7a78825378 More TODO cleanup. 2015-05-07 18:52:40 -04:00
Pietro Gagliardi e6b33aafd0 Cleaned up the make output to be less noisy. 2015-05-07 18:46:19 -04:00
Pietro Gagliardi 817e13ae61 Set up visibility on OS X. This seems to work... 2015-05-07 18:38:47 -04:00