Commit Graph

462 Commits

Author SHA1 Message Date
Pietro Gagliardi 83129eeef5 Normalized uiprivInternalError() calls to always try to fail gracefully, and make sure errors don't call abort() so we can resume when debugging (and because this isn't really our decision to make...). (The debugger breaks will be removed from release builds when we get to that point.) Finally, refined some TODOs and removed some stale ones (in this case, that were related to the first few things). 2020-02-09 13:37:45 -05:00
Pietro Gagliardi 80ada0a06b And implemented the bare bones of uiControlOSVtable on GTK+. 2019-06-18 20:19:32 -04:00
Pietro Gagliardi 48cd6e1dd8 Cleaned #include directives so C standard library headers are sorted and so each source file only includes one header file. This makes things clenaer, and alos allows us to more properly strip unneeded headers later. 2019-06-01 09:27:17 -04:00
Pietro Gagliardi 9daef443b2 Moved uiQueueMain() to common/init.c to avoid having multiple initialized variables; the per-OS versions are now uiprivSysQueueMain(). Also more TODOs. 2019-05-30 01:39:43 -04:00
Pietro Gagliardi b0e890ca1d Missed a spot again 2019-05-30 01:18:20 -04:00
Pietro Gagliardi ab5b3076ed Removed uiInitError length checking and just truncated too-long messages with an ellipsis. Also removed the non-printf version of uiprivReportInitError. 2019-05-30 01:16:33 -04:00
Pietro Gagliardi 19ad0d33a3 Changed uiInit() to return bool instead of int, now that we've settled on using bool. 2019-05-29 21:10:44 -04:00
Pietro Gagliardi 4815629eef Implemented the thread checks on GTK+. 2019-05-29 00:54:22 -04:00
Pietro Gagliardi 3721bf0c8e Oops, we have to make the tests work on other platforms too. Done for GTK+. 2019-05-26 23:25:08 -04:00
Pietro Gagliardi f97383f66c Rearranged things so that uiInit() itself is in common/init.c and the OS-specific initialization code is its own standalone internal function. This'll make testing a bit easier, especially after the next few commits, and will allow me to test pre-initialization and cross-thread stuff a bit more easily. 2019-05-09 12:07:28 -04:00
Pietro Gagliardi bdf80516c5 Reimplemented uiMain() and friends on GTK+. 2019-04-28 14:52:39 -04:00
Pietro Gagliardi 23591eeefa Executive decision: drop uiUnint(). This was really more for double-checking *my* work, mostly with regards to memory management, and we could probably do that in the test suite instead, or even with AddressSanitizer. 2019-04-21 20:59:36 -04:00
Pietro Gagliardi 469484415d Implemented uiInit() on Unix. 2019-04-21 12:24:19 -04:00
Pietro Gagliardi 12d52be921 Oops; missed a spot. 2019-04-08 20:38:17 -04:00
Pietro Gagliardi 53c2fe9d00 Properly specified -lm and -ldl on Unix. 2019-03-29 09:35:38 -04:00
Pietro Gagliardi 81e25f76f2 Moved the binary PIC as a TODO and marked merge blockers as MESONTODO. Also removed a stale cmake-era TODO, because the manifest distribution idea it had will eventually be part of the uires tool. 2019-03-27 21:34:09 -04:00
Pietro Gagliardi 8b37a98170 Settled unix/CMakeLists.txt (was already complete in unix/meson.build) and darwin/CMakeLists.txt (just had one other thing needing to be moved). 2019-03-27 01:02:50 -04:00
Pietro Gagliardi 1b9250e41e Removed include_directories hackery, as suggested by various people in freenode #mesonbuild. 2019-03-25 20:07:22 -04:00
Pietro Gagliardi dff8ec0f22 Set up the Unix meson.build. That seems to work too. 2019-03-23 21:06:19 -04:00
Pietro Gagliardi 869992010c Fixed uiImage on GTK+. Also changed it to have cairo manage memory and decide best parameters for us. I forgot to mention that the fix on OS X did this there too. Also made sure we use cairo surfaces properly this time. 2018-08-30 11:08:44 -04:00
Pietro Gagliardi 24df7bc3f2 Cleaned up timers in uiUninit() on GTK+. Update #395. 2018-08-09 04:49:07 -04:00
Pietro Gagliardi e0ca00e55b Resolved confusion about the terminology of strides in uiImageAppend(). Also prevents overallocation on some platforms. Thanks to @mischnic and @msink for spotting this. Update #402. 2018-08-05 18:39:29 -04:00
Pietro Gagliardi 6812cab625 Implemented uiControlDestroy() for uiTable on GTK+. 2018-07-08 21:50:16 -04:00
Pietro Gagliardi ce0168e1a5 I give up 2018-07-01 17:35:34 -04:00
Pietro Gagliardi 5d9928028f Wrote the initial version of the indeterminate progressbar in tables code on GTK+. VirtualBox is giving me issues when any indeterminate progressbar (real or table-based) is up; I wonder what's going on. 2018-06-24 18:23:25 -04:00
Pietro Gagliardi acb40964f3 Deduplicated editable logic across platforms. 2018-06-24 11:41:19 -04:00
Pietro Gagliardi fb67c429d8 Made background color columns only settable at creation time; added a uiTableParams struct for the purpose. This should end edits to uitable.h for now (until we're ready to document it). Now to just clean up all the implementations. 2018-06-24 10:28:41 -04:00
Pietro Gagliardi 72c7c05f04 Fixed up AddColumn parameter and private fields names; made them consistent. 2018-06-24 09:52:01 -04:00
Pietro Gagliardi 4dbf1994a6 Deduplicated the default text column parameters across platforms. 2018-06-24 00:45:54 -04:00
Pietro Gagliardi 8f4598f641 Finally removed the extra uiImage declarations that were there for long-irrelevant compiler errors. 2018-06-23 23:45:58 -04:00
Pietro Gagliardi 74ec21f4c7 Turned the direct method calls on uiTableModel into functions to make the call sites look a bit cleaner. More stuff will go into common/tablemodel.c... 2018-06-23 23:35:42 -04:00
Pietro Gagliardi 9a79eed2ac Final cleanup, first part: renamed uiTableData to uiTableValue. 2018-06-23 20:19:30 -04:00
Pietro Gagliardi 7a40bdfb3f Amazingly, it worked the first time! Just a quick logic error here. 2018-06-07 22:30:43 -04:00
Pietro Gagliardi 66ca3315cf Fixed compile errors. Now for runtime errors, if any! 2018-06-07 22:25:17 -04:00
Pietro Gagliardi d6ac22a20a Finished rewriting table.c. Now to test. 2018-06-07 21:50:38 -04:00
Pietro Gagliardi b7151388e3 Started rewriting the column constructors. 2018-06-05 22:47:11 -04:00
Pietro Gagliardi 18d8a8fe22 Converted column functions and editable handlers on GTK+. 2018-06-05 22:00:54 -04:00
Pietro Gagliardi 75a5a050cb Split the uiTableModel GTK+ code into its own file, tablemodel.c. 2018-06-04 23:46:30 -04:00
Pietro Gagliardi 94fa10b35e Started rewriting GTK+ uiTable. Did uiTableModel first. 2018-06-04 23:39:52 -04:00
Pietro Gagliardi 1cb0e9046f Made the button cell renderer draw and size much more nicely than it did before, fixing a few bugs along the way. 2018-05-30 22:48:46 -04:00
Pietro Gagliardi 31090442be Merge branch 'master' into table 2018-05-13 18:05:50 -04:00
Pietro Gagliardi e00a91ded4 Fixed event propagation in GTK+ uiDateTimePicker. 2018-05-13 18:00:25 -04:00
Pietro Gagliardi 9dad806693 Merge branch 'master' into table 2018-05-13 12:05:43 -04:00
Pietro Gagliardi ca1079f344 Cleaned up from the previous merge and added it to the README. 2018-05-13 12:05:09 -04:00
cody271 9aba97714d uiDateTimePicker Add comments 2018-05-12 21:35:07 -07:00
cody271 266c633972 uiprivDateTimePickerWidget Fix calendarBlock GTK+ signal 2018-05-12 21:35:07 -07:00
cody271 f3d0fee21a uiDateTimePicker Use 'uipriv' convention 2018-05-12 21:35:07 -07:00
cody271 edd4127f8e uiDateTimePicker Fix style consistency 2018-05-12 21:35:07 -07:00
cody271 594e3a1ccc uiDateTimePicker Move struct definition back 2018-05-12 21:35:07 -07:00
cody271 5ec5ebdfae uiDateTimePicker Emit proper GTK+ signal in dateTimePickerWidget 2018-05-12 21:35:07 -07:00