aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-08-29 00:49:57 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-08-29 00:54:43 +1200
commit266cb3f209e752856b832af008cf7aba40be3cba (patch)
treeacb1020f81be5a30e57f6a6be3bdc49ccb9b9b98
parentb71fdc1baa7aa1f6a8099e6c90929718e282b899 (diff)
downloadparamano-266cb3f209e752856b832af008cf7aba40be3cba.tar.xz
Set battery check interval to 2 minutes rather than 5 seconds
-rw-r--r--Makefile6
-rw-r--r--bat_tray.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index a458cb3..f279784 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ DEFS += -DPREFIX=\"$(PREFIX)\" \
-D_GNU_SOURCE
-DEPS = bat_tray.h \
+DEPS += bat_tray.h \
common.h \
config_file.h \
defaults.h \
@@ -38,7 +38,7 @@ DEPS = bat_tray.h \
tray.h \
paramano_set_interface.h
-CFLAGS = -I/usr/include/gtk-2.0 \
+CFLAGS += -I/usr/include/gtk-2.0 \
-I/usr/lib/gtk-2.0/include \
-I/usr/include/pango-1.0 \
-I/usr/include/cairo \
@@ -61,7 +61,7 @@ CFLAGS = -I/usr/include/gtk-2.0 \
-Werror \
-D_=gettext
-LDFLAGS = -lgtk-3 \
+LDFLAGS += -lgtk-3 \
-lgobject-2.0 \
-lglib-2.0
diff --git a/bat_tray.c b/bat_tray.c
index cdedf86..e70d47d 100644
--- a/bat_tray.c
+++ b/bat_tray.c
@@ -218,7 +218,7 @@ void bat_tray_init()
free(icon_file);
gtk_status_icon_set_has_tooltip (tray, TRUE);
g_signal_connect(G_OBJECT(tray), "query-tooltip", GTK_SIGNAL_FUNC(show_tooltip), NULL);
- g_timeout_add(5000, update, NULL);
+ g_timeout_add(120000, update, NULL);
/* Force something useful to be in the cached tooltip text,
* force meaningful icon */