diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-08-16 04:32:39 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-08-16 04:32:39 -0500 |
commit | 9a9db98089717990cd5e0eef529f6bb0819ebe46 (patch) | |
tree | a9afaabce984d5fe552fa8bf1a9405db9bdd2699 /includes/hardinfo.h | |
parent | 69a2124e9a081518297951256eb5c8d72d93361f (diff) |
New upstream version 0.5.1+git20170815
Diffstat (limited to 'includes/hardinfo.h')
-rw-r--r-- | includes/hardinfo.h | 21 |
1 files changed, 16 insertions, 5 deletions
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 <libintl.h> -#include <locale.h> -#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__ */ |