aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIain Lane <iain.lane@canonical.com>2015-09-03 10:54:20 +0100
committerIain Lane <iain.lane@canonical.com>2015-09-03 10:54:20 +0100
commit29b5c4da1e44534352d29536bb6ad1c721406b8a (patch)
treeb03e1ad209e51d57036c2706e2df764ed0ed8778 /include
parent1da27f9088a759e78e88a390583d8646f2a82656 (diff)
downloadayatana-indicator-datetime-29b5c4da1e44534352d29536bb6ad1c721406b8a.tar.gz
ayatana-indicator-datetime-29b5c4da1e44534352d29536bb6ad1c721406b8a.tar.bz2
ayatana-indicator-datetime-29b5c4da1e44534352d29536bb6ad1c721406b8a.zip
Avoid nested GMainLoops by reading from the file on startup
Restore some tests for this functionality.
Diffstat (limited to 'include')
-rw-r--r--include/datetime/timezone-timedated.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/datetime/timezone-timedated.h b/include/datetime/timezone-timedated.h
index 3df9a3e..5978e3e 100644
--- a/include/datetime/timezone-timedated.h
+++ b/include/datetime/timezone-timedated.h
@@ -20,6 +20,8 @@
#ifndef INDICATOR_DATETIME_TIMEDATED_TIMEZONE_H
#define INDICATOR_DATETIME_TIMEDATED_TIMEZONE_H
+#define DEFAULT_FILENAME "/etc/timezone"
+
#include <datetime/timezone.h> // base class
#include <string> // std::string
@@ -34,7 +36,7 @@ namespace datetime {
class TimedatedTimezone: public Timezone
{
public:
- TimedatedTimezone();
+ TimedatedTimezone(std::string filename = DEFAULT_FILENAME);
~TimedatedTimezone();
private: