projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c0f6c6
)
fixed col > 80
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 25 Sep 2014 18:58:37 +0000
(20:58 +0200)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Thu, 25 Sep 2014 18:58:37 +0000
(20:58 +0200)
src/ui_appindicator.c
patch
|
blob
|
history
diff --git
a/src/ui_appindicator.c
b/src/ui_appindicator.c
index
f9f1a59
..
a396f65
100644
(file)
--- a/
src/ui_appindicator.c
+++ b/
src/ui_appindicator.c
@@
-34,6
+34,9
@@
static const char *ICON = "psensor_normal";
static const char *ATTENTION_ICON = "psensor_hot";
static const char *ICON = "psensor_normal";
static const char *ATTENTION_ICON = "psensor_hot";
+static const char *GLADE_FILE
+= PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "psensor-appindicator.glade";
+
static struct psensor **sensors;
static GtkMenuItem **menu_items;
static bool appindicator_supported = true;
static struct psensor **sensors;
static GtkMenuItem **menu_items;
static bool appindicator_supported = true;
@@
-138,12
+141,12
@@
static GtkWidget *get_menu(struct ui_psensor *ui)
error = NULL;
ok = gtk_builder_add_from_file
(builder,
error = NULL;
ok = gtk_builder_add_from_file
(builder,
-
PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "psensor-appindicator.glade"
,
+
GLADE_FILE
,
&error);
if (!ok) {
log_err(_("Failed to load glade file %s: %s"),
&error);
if (!ok) {
log_err(_("Failed to load glade file %s: %s"),
-
PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "psensor-appindicator.glade"
,
+
GLADE_FILE
,
error->message);
g_error_free(error);
return NULL;
error->message);
g_error_free(error);
return NULL;