summaryrefslogtreecommitdiff
path: root/src/gs-listener-dbus.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-07-02 16:46:26 +0200
committerStefano Karapetsas <[email protected]>2014-07-02 16:46:26 +0200
commitc3291dc17754e015c8994352fba2d8c7a5db6ef9 (patch)
tree11d406e4142334588b777046e401adb42fcd2445 /src/gs-listener-dbus.c
parent5b1dfd26f8e66410c01f59e22fcfe304dd129502 (diff)
downloadmate-screensaver-c3291dc17754e015c8994352fba2d8c7a5db6ef9.tar.bz2
mate-screensaver-c3291dc17754e015c8994352fba2d8c7a5db6ef9.tar.xz
Remove some old code after GLIB and GTK2 minimum version bump
Diffstat (limited to 'src/gs-listener-dbus.c')
-rw-r--r--src/gs-listener-dbus.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index dcccc33..7f4acaa 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -834,29 +834,6 @@ out:
return removed;
}
-#if GLIB_CHECK_VERSION(2,12,0)
-#define _g_time_val_to_iso8601(t) g_time_val_to_iso8601(t)
-#else
-/* copied from GLib */
-static gchar *
-_g_time_val_to_iso8601 (GTimeVal *time_)
-{
- gchar *retval;
-
- g_return_val_if_fail (time_->tv_usec >= 0 && time_->tv_usec < G_USEC_PER_SEC, NULL);
-
-#define ISO_8601_LEN 21
-#define ISO_8601_FORMAT "%Y-%m-%dT%H:%M:%SZ"
- retval = g_new0 (gchar, ISO_8601_LEN + 1);
-
- strftime (retval, ISO_8601_LEN,
- ISO_8601_FORMAT,
- gmtime (&(time_->tv_sec)));
-
- return retval;
-}
-#endif
-
static void
accumulate_ref_entry (gpointer key,
GSListenerRefEntry *entry,
@@ -865,7 +842,7 @@ accumulate_ref_entry (gpointer key,
char *description;
char *time;
- time = _g_time_val_to_iso8601 (&entry->since);
+ time = g_time_val_to_iso8601 (&entry->since);
description = g_strdup_printf ("Application=\"%s\"; Since=\"%s\"; Reason=\"%s\";",
entry->application,