diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2019-07-02 20:03:26 -0700 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2019-07-04 22:01:04 -0700 |
commit | beedb31a3fd606e360eaf5dcce0b4cbe2a3b6bab (patch) | |
tree | 664c6a8d76dc2d3acc34f9fe74030df1f2c48438 /modules/devices.c | |
parent | e6ba6effee2aaa6713421a011aa2d8e624113c6e (diff) |
Use DetailView for SHELL_VIEW_NORMAL and the more info display
This change has been made mostly because we need more control in how
things are displayed, and fighting GTK+ so that this is possible isn't
going to cut it.
For instance, it is now possible to display links -- albeit only
external links at the moment, but internal links will be possible,
allowing for instance for one to click in a kernel module dependency to
know more about that particular module. Links will also be useful to
go to the vendor website, and maybe other things (like web search for
Vendor + Product ID) and whatnot.
Eventually this will replace the summary view altogether. That code
has a lot of drawbacks, including not being able to have its contents
copied to the clipboard, appear in reports, or have auto-updating
fields. It stays for now, but it will be gone before 0.6 is released.
I had forgotten how messy this code is. One of the reasons I lost the
interest in this project... I want to hack on a nicer code base but I
also lack the strong motivation to write the shell from the scratch.
Diffstat (limited to 'modules/devices.c')
-rw-r--r-- | modules/devices.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/devices.c b/modules/devices.c index ca31f803..f4a716a1 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -627,7 +627,10 @@ gchar *callback_processors() gchar *callback_dmi() { - return g_strdup(dmi_info); + return g_strdup_printf("%s" + "[$ShellParam$]\n" + "ViewType=5\n", + dmi_info); } gchar *callback_dmi_mem() @@ -646,6 +649,7 @@ gchar *callback_battery() { return g_strdup_printf("%s\n" "[$ShellParam$]\n" + "ViewType=5\n" "ReloadInterval=4000\n", battery_list); } |