diff options
| author | Burt P <pburt0@gmail.com> | 2018-03-02 14:33:55 -0600 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-03-12 09:17:41 -0700 | 
| commit | c9f34d357168e3c9bd6c5dc7ad97e2c05edb39df (patch) | |
| tree | 2da9e2b30f4ad41ea46275e3f08c538f1c3a94b0 /includes | |
| parent | 1906d3027dc3ad8b9b5533712299d48e265c852c (diff) | |
report: highlight "selected" items
For benchmark results, the current machine will be highlighted in the list
by using the shell's select marker.
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/report.h | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/includes/report.h b/includes/report.h index 782621cb..c04d2073 100644 --- a/includes/report.h +++ b/includes/report.h @@ -15,7 +15,7 @@   *    along with this program; if not, write to the Free Software   *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA   */ -  +  #ifndef __REPORT_H__  #define __REPORT_H__  #include <gtk/gtk.h> @@ -41,16 +41,16 @@ typedef struct _ReportContext	ReportContext;  struct _ReportContext {    ShellModuleEntry	*entry;    gchar			*output; -   +    void (*header)      	(ReportContext *ctx);    void (*footer)      	(ReportContext *ctx);    void (*title)      	(ReportContext *ctx, gchar *text);    void (*subtitle)    	(ReportContext *ctx, gchar *text);    void (*subsubtitle)	(ReportContext *ctx, gchar *text); -  void (*keyvalue)   	(ReportContext *ctx, gchar *key, gchar *value); -   +  void (*keyvalue)   	(ReportContext *ctx, gchar *key, gchar *value, gboolean highlight); +    ReportFormat		format; -   +    gboolean		is_image_enabled;    gboolean		first_table; @@ -67,7 +67,7 @@ struct _ReportDialog {    GtkWidget *btn_sel_all;    GtkWidget *btn_sel_none;    GtkWidget *treeview; -   +    GtkTreeModel *model;  }; @@ -81,7 +81,7 @@ void		 report_footer		(ReportContext *ctx);  void		 report_title		(ReportContext *ctx, gchar *text);  void 		 report_subtitle	(ReportContext *ctx, gchar *text);  void 		 report_subsubtitle	(ReportContext *ctx, gchar *text); -void		 report_key_value	(ReportContext *ctx, gchar *key, gchar *value); +void		 report_key_value	(ReportContext *ctx, gchar *key, gchar *value, gboolean highlight);  void		 report_table		(ReportContext *ctx, gchar *text);  void             report_create_from_module_list(ReportContext *ctx, GSList *modules); | 
