aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-03 12:51:26 -0600
committerTed Gould <ted@gould.cx>2011-03-03 12:51:26 -0600
commite9cfa50435c791a528a2d8e8b8b029899a7fef43 (patch)
tree77ea0191ac4260350fe21e6ce321c240a9f3f6c6
parent8dd02d2c40d70d6b16cca5d4ca1029f97996174e (diff)
parent0188356e069018c07849f8c2c09c9741bbf70ff5 (diff)
downloadayatana-indicator-datetime-e9cfa50435c791a528a2d8e8b8b029899a7fef43.tar.gz
ayatana-indicator-datetime-e9cfa50435c791a528a2d8e8b8b029899a7fef43.tar.bz2
ayatana-indicator-datetime-e9cfa50435c791a528a2d8e8b8b029899a7fef43.zip
White space and include fixes
-rw-r--r--src/datetime-service.c4
-rw-r--r--src/indicator-datetime.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/datetime-service.c b/src/datetime-service.c
index 7b135a8..3685c96 100644
--- a/src/datetime-service.c
+++ b/src/datetime-service.c
@@ -47,7 +47,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include <libical/icaltime.h>
#include <cairo/cairo.h>
-
#include <oobs/oobs-timeconfig.h>
#include "datetime-interface.h"
@@ -137,7 +136,7 @@ check_timezone_sync (void) {
} else {
g_debug("Timezones are different");
}
-
+
gboolean show = g_settings_get_boolean (conf, SETTINGS_SHOW_LOCATIONS_S);
if (geo_location != NULL && current_location != NULL) {
@@ -383,6 +382,7 @@ update_timezone_menu_items(gpointer user_data) {
g_debug("Updating timezone menu items");
gchar ** locations = g_settings_get_strv(conf, SETTINGS_LOCATIONS_S);
+
if (locations == NULL) {
g_debug("No locations configured (NULL)");
return FALSE;
diff --git a/src/indicator-datetime.c b/src/indicator-datetime.c
index 2099929..7659812 100644
--- a/src/indicator-datetime.c
+++ b/src/indicator-datetime.c
@@ -23,6 +23,11 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config.h"
#endif
+#include <locale.h>
+#include <langinfo.h>
+#include <string.h>
+#include <time.h>
+
/* GStuff */
#include <glib.h>
#include <glib/gprintf.h>