Alexander Shaduri
351c8b23cb
(Possibly) fix a memory leak related to Gtk::Menu.
2022-01-25 15:53:56 +04:00
Alexander Shaduri
3fc29efd2f
Partial port to Gio::Action (from Gtk::Action), Gtk::Builder (from Gtk::UiManager), and Gtk::ApplicationWindow (from Gtk::Window for main window).
2022-01-25 15:53:10 +04:00
Alexander Shaduri
c361129929
Place less code in #ifdef _WIN32 to make platform-specific compilation less error-prone.
2022-01-24 13:02:32 +04:00
Alexander Shaduri
d42a92e58d
Ported away from deprecated Gtk::Dialog methods.
2022-01-24 13:00:40 +04:00
Alexander Shaduri
38f9928756
Ported away from deprecated Gtk::Label methods.
2022-01-24 13:00:21 +04:00
Alexander Shaduri
1614106510
Ported from Gtk::Stock to XDG icon names.
2022-01-24 12:59:37 +04:00
Alexander Shaduri
6b1e9cd3ef
Ported from Gtk::Main to Gtk::Application.
2022-01-24 12:58:37 +04:00
Alexander Shaduri
5f11e9a7ce
Fixed building under Windows.
2022-01-18 16:31:13 +04:00
Alexander Shaduri
f128de2b30
Fixed building non-debug builds.
2022-01-18 15:53:48 +04:00
Alexander Shaduri
88e9e8c2f7
Implemented most build settings as constexpr functions and ported most of macro-based conditional compilation to if constexpr(); this significantly improves code quality and the chance of build success on different platforms and build configurations.
...
More code modernization.
2022-01-18 15:30:55 +04:00
Alexander Shaduri
235fba8a04
Convert relative smartctl-nc path to absolute before running it.
2022-01-15 15:24:11 +04:00
Alexander Shaduri
0183626c73
Change current path to gsmartcontrol directory before running smartctl - this should fix not being able to find "smartctl-nc" when CWD differs from gsmartcontrol installation directory, as it may happen when running gsmartcontrol from cmd.
2022-01-15 15:07:10 +04:00
Alexander Shaduri
bcc36f260d
Fixed finding data files in non-debug builds when running from build directory.
2022-01-15 15:01:39 +04:00
Alexander Shaduri
ad796dad9e
Automatically handle running from source/build directory and from package, using whereami library; this should fix not being able to run the application from non-standard build directories.
2022-01-15 14:35:06 +04:00
Alexander Shaduri
c72b746d0a
Escape all text wherever it may be interpreted as markup, even if not coming from external source.
2022-01-14 19:17:15 +04:00
Alexander Shaduri
b4b6980a0c
Fixed a GTK warning related to markup in Info window's attributes tab.
2022-01-14 18:53:16 +04:00
Alexander Shaduri
534dcd129e
Code modernization and cleanups.
2022-01-14 15:06:07 +04:00
Alexander Shaduri
3e4cefb04f
Fixed a crash when trying to render main window icons which have incomplete data; fixes #13 in main branch.
2022-01-12 18:04:42 +04:00
Alexander Shaduri
dd392845a6
Fixed cmake build for the last commit.
2022-01-10 21:09:03 +04:00
Alexander Shaduri
7f2fb32735
Refactored InstanceManager (now WindowInstanceManager) to manage all window instances, keep them alive and have the ability to destroy them; this avoids any manual "delete" calls, and fixes a (newly introduced) crash on exit.
2022-01-10 19:13:11 +04:00
Alexander Shaduri
f3247ec13b
Merge remote-tracking branch 'origin/main' into main
2022-01-10 17:02:12 +04:00
Alexander Shaduri
ad014517b9
Set LC_NUMERIC=C for smartctl process to avoid locale-dependent number formatting.
2022-01-10 17:01:56 +04:00
Harald Judt
6adac797d3
Fix barely readable info cell texts
...
By simply resetting values, the rendered cell text colors are barely
readable. Setting Pango::WEIGHT_NORMAL instead of resetting seems to fix this
nicely without any negative consequences.
Signed-off-by: Harald Judt <h.judt@gmx.at >
2021-12-21 14:25:06 +01:00
dpc
17f54a8848
Add time (%H%M) to default filename in save dialog
2021-10-08 20:24:02 +02:00
Alexander Shaduri
b78f8573b5
Implemented smartctl process environment changes without changing the main program's environment.
...
Removed ScopedEnv class - it's not thread-safe and very easy to misuse.
2021-04-21 16:48:46 +04:00
Alexander Shaduri
cdb9a4c603
Renamed SmartctlTextParser to SmartctlAtaTextParser.
2021-03-19 14:51:32 +04:00
Alexander Shaduri
a33d4109d1
Fix cross-compiling (test discovery doesn't work when cross-compiling).
2021-03-17 14:26:13 +04:00
Alexander Shaduri
15ab09063b
Minor cleanups.
2021-03-17 14:25:30 +04:00
Alexander Shaduri
b1150d8e86
Implemented app_pcre_get_options() tests.
2021-03-16 18:10:35 +04:00
Alexander Shaduri
b84f3d9218
Register libdebug domains in test_all.
2021-03-16 18:10:19 +04:00
Alexander Shaduri
9db25f3907
Add Catch2 testing framework and integrate it into the build system and CI; moved json to subdirectory.
2021-03-16 17:57:01 +04:00
Alexander Shaduri
812bd2191e
Fixed non-linux builds.
2021-03-16 16:27:06 +04:00
Alexander Shaduri
788a4760b8
Refactored storage property classes (better naming, documentation), removed app_gtkmm_features.h.
2021-03-16 16:06:28 +04:00
Alexander Shaduri
d74da816a1
Refactored command executors (better naming, documentation).
2021-03-16 15:24:08 +04:00
Alexander Shaduri
cfc11bef6e
Refactored app_pcrecpp.h structure.
2021-03-15 19:00:50 +04:00
Alexander Shaduri
bedd8f362b
Refactored gtkmm utils and app builder to simply the code and document it better.
2021-03-15 17:55:22 +04:00
Alexander Shaduri
7855ce9dfb
Fixed cmake warnings.
2021-03-15 16:40:25 +04:00
Alexander Shaduri
5f9801328f
Merge remote-tracking branch 'origin/main' into main
2021-03-11 18:06:36 +04:00
Alexander Shaduri
2d83424510
Another fix for cmake 3.12.
2021-03-11 18:05:23 +04:00
Alexander Shaduri
78391d236b
Support cmake 3.12.
2021-03-11 17:09:42 +04:00
Alexander Shaduri
692fb1c7ca
Fixed "drive is testing" message on startup.
2021-03-10 14:28:22 +04:00
Alexander Shaduri
2e49c6b7ed
Support compilation under gcc 7.
2021-03-10 13:44:28 +04:00
Alexander Shaduri
cb1abab75f
Support Finnish decimal separator (backported from Debian package).
2021-03-10 13:05:47 +04:00
Alexander Shaduri
9c97f463c9
Fixed a few typos (backported from debian package).
2021-03-10 13:05:21 +04:00
Alexander Shaduri
09e9e7d380
Fixed cmake install target, support cpack windows binary zip / NSIS, support package_source target; removed cpack RPM and DEB support.
2021-03-09 17:14:51 +04:00
Alexander Shaduri
b0b9c4169e
Initial refactoring to support cpack-based packaging and OBS builds.
2021-03-09 15:17:25 +04:00
Alexander Shaduri
1ddcbc224e
Fixed compilation under FreeBSD and QNX.
2021-03-09 13:08:27 +04:00
Alexander Shaduri
d101a92750
Support old Glibmm only with libstdc++.
2021-03-08 16:51:42 +04:00
Alexander Shaduri
fce77dc7d7
Fixed building under macosx.
2021-03-08 16:51:12 +04:00
Alexander Shaduri
d9d681db5e
Refactored libdebug's bitset-related types.
2021-03-05 14:19:01 +04:00