From c9f34d357168e3c9bd6c5dc7ad97e2c05edb39df Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 2 Mar 2018 14:33:55 -0600 Subject: 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 --- includes/report.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'includes/report.h') 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 @@ -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); -- cgit v1.2.3