summaryrefslogtreecommitdiff
path: root/libslab/bookmark-agent.h
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-11-01 10:21:17 +0100
committerLuke from DC <[email protected]>2022-02-09 04:47:12 +0000
commit384ce5d35897453a5dcca79c2633035dd40aeaa1 (patch)
tree2840d9f24277de09f8124845c6f5972a5cfaae5b /libslab/bookmark-agent.h
parentf6bd25fdf6196dd98d36708966e13e58a22d6c85 (diff)
downloadmate-control-center-384ce5d35897453a5dcca79c2633035dd40aeaa1.tar.bz2
mate-control-center-384ce5d35897453a5dcca79c2633035dd40aeaa1.tar.xz
bookmark-agent: fix backward compatibility with glib < 2.66
Diffstat (limited to 'libslab/bookmark-agent.h')
-rw-r--r--libslab/bookmark-agent.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libslab/bookmark-agent.h b/libslab/bookmark-agent.h
index 409509e1..f54415bf 100644
--- a/libslab/bookmark-agent.h
+++ b/libslab/bookmark-agent.h
@@ -21,10 +21,13 @@
#ifndef __BOOKMARK_AGENT_H__
#define __BOOKMARK_AGENT_H__
-#include <time.h>
#include <glib.h>
#include <glib-object.h>
+#if !GLIB_CHECK_VERSION(2,66,0)
+#include <time.h>
+#endif
+
G_BEGIN_DECLS
#define BOOKMARK_AGENT_TYPE (bookmark_agent_get_type ())
@@ -41,7 +44,11 @@ typedef struct {
gchar *uri;
gchar *title;
gchar *mime_type;
+#if GLIB_CHECK_VERSION(2,66,0)
GDateTime *mtime;
+#else
+ time_t mtime;
+#endif
gchar *icon;
gchar *app_name;
gchar *app_exec;