Age | Commit message (Collapse) | Author |
|
While info_flatten() is just a scaffold, use GString to reduce the
amount of temporary heap memory allocations.
|
|
Strings were never a good choice to begin with. However, with the efforts
to improve translatability, they became even worse. This is an attempt to
clean up the current mess and provide a more structured way for modules to
commmunicate with the shell.
The Computer module has been partially converted and changes will be
provided next. It's partially converted since some of its information is
still stored as strings.
The Shell still only understands strings; that's why the structured data is
converted to a string the way it is. Once all modules are converted, the
Shell can be modified to handle struct Info directly without having to parse
the .ini-like strings.
|
|
x86/processor.c uses vendor_get_name() with the CPUID vendor
string as argument.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* nVidia tweak
* Don't strdup() vendor_get_*() results, they return const and nobody's
freeing them anyway.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* Use a define for copyright latest year, also used by
`hardinfo --version`
* Don't translate Jakub Szypulka
* Add myself to contributors list
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Fixes strings not being translated in the CLI.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* Use gtk_widget_get_window() instead of ->window
cmake:
* add option to build against gtk3 `-DHARDINFO_GTK3=1`
* combine hardinfo-shell static library and hardinfo
* disable guibench for gtk3
hardinfo/util.c:
* widget_set_cursor() gtk3 changes
* For now, the whole function tree_view_save_image() is disabled
for gtk3.
shell/shell.c:
* add gtk_notebook_set_page() compatibility macro if not defined
* shell_summary_add_item() fixes
* Disable RANGE_GET_VALUE() RANGE_SET_VALUE() macros for GTK3. This
is a nigtmare onion to try and peel.
shell/callbacks.c:
* gtk_about_dialog_set_name() -> gtk_about_dialog_set_program_name()
after GTK+2.12.
shell/loadgraph.c:
* builds, but not yet functioning under gtk3
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Plus a couple other minor tweaks.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Hack a way to skip unavailable entries. Now "Resources" is
avaialbe outside of x86 when it wasn't before.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
Also, some stray whitespace removed.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Fixed compile warning in utils.c:
[ 37%] Building C object CMakeFiles/hardinfo.dir/hardinfo/util.c.o
/home/maxpayne/hardinfo/hardinfo/util.c: In function ‘seconds_to_string’:
/home/maxpayne/hardinfo/hardinfo/util.c:105:34: warning: too many arguments for format [-Wformat-extra-args]
return g_strdup_printf(ngettext("%d hour, ", "%d hours, ", hours), hours,
^
/home/maxpayne/hardinfo/hardinfo/util.c:108:37: warning: too many arguments for format [-Wformat-extra-args]
return g_strdup_printf(ngettext("%d day, ", "%d days, ", days), days,
^
[ 39%] Linking C executable hardinfo
|
|
|
|
|
|
|
|
|
|
|
|
This has no encryption, SSH credentials are stored in plain text, etc.
|
|
|
|
moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
|
|
|
|
use the LIBDIR we get from GNUInstallDirs module instead of this ifdef,
it should be more robust and is distro dependant
|
|
this breaks strict compilers
|
|
Have only one for the whole program and use per-module namespaces/prefixes
so that each module can clear its own information easily.
|
|
|
|
|