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 /includes/shell.h | |
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 'includes/shell.h')
-rw-r--r-- | includes/shell.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/shell.h b/includes/shell.h index c68d2115..c6570088 100644 --- a/includes/shell.h +++ b/includes/shell.h @@ -84,7 +84,7 @@ struct _Shell { GtkWidget *hbox, *vpaned; ShellTree *tree; - ShellInfoTree *info_tree, *moreinfo_tree; + ShellInfoTree *info_tree; ShellModule *selected_module; ShellModuleEntry *selected; ShellNote *note; @@ -106,11 +106,9 @@ struct _Shell { }; struct _DetailView { - GtkWidget *header; GtkWidget *scroll; GtkWidget *view; - - GSList *items; + GtkWidget *detail_box; }; struct _ShellTree { |