From 9a9db98089717990cd5e0eef529f6bb0819ebe46 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Wed, 16 Aug 2017 04:32:39 -0500 Subject: New upstream version 0.5.1+git20170815 --- includes/hardinfo.h | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'includes/hardinfo.h') diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 70329ac7..f42f1e6c 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -23,10 +23,14 @@ #include "config.h" #include "shell.h" #include "vendor.h" -#include -#include -#define _(STRING) gettext(STRING) -#define N_(STRING) (STRING) +#include "gettext.h" +#include "info.h" + +#define HARDINFO_COPYRIGHT_LATEST_YEAR 2017 + +#ifndef LOCALEDIR +#define LOCALEDIR "/usr/share/locale" +#endif typedef enum { MODULE_FLAG_NONE = 0, @@ -88,7 +92,6 @@ gchar *strreplace(gchar *string, gchar *replace, gchar *replacement); /* Widget utility functions */ void widget_set_cursor(GtkWidget *widget, GdkCursorType cursor_type); gint tree_view_get_visible_height(GtkTreeView *tv); -void tree_view_save_image(gchar *filename); /* File Chooser utility functions */ void file_chooser_open_expander(GtkWidget *chooser); @@ -167,4 +170,12 @@ gchar *moreinfo_lookup(gchar *key); gboolean g_strv_contains(const gchar * const * strv, const gchar *str); #endif +/* Hardinfo labels that have # are truncated and/or hidden. + * Labels can't have $ because that is the delimiter in + * moreinfo. + * replacing = true will free v */ +gchar *hardinfo_clean_label(const gchar *v, int replacing); +/* hardinfo uses the values as {ht,x}ml, apparently */ +gchar *hardinfo_clean_value(const gchar *v, int replacing); + #endif /* __HARDINFO_H__ */ -- cgit v1.2.3