From 2c5a103b59a53d5fb586572e38d65e7afb5ecb44 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 31 Oct 2013 01:39:36 +0100 Subject: session: support_autostart_delay --- egg/eggdesktopfile.c | 10 ++++++++++ egg/eggdesktopfile.h | 3 +++ 2 files changed, 13 insertions(+) (limited to 'egg') diff --git a/egg/eggdesktopfile.c b/egg/eggdesktopfile.c index 3bb3d36..83f9a4e 100644 --- a/egg/eggdesktopfile.c +++ b/egg/eggdesktopfile.c @@ -420,6 +420,16 @@ egg_desktop_file_get_numeric (EggDesktopFile *desktop_file, error); } +int +egg_desktop_file_get_integer (EggDesktopFile *desktop_file, + const char *key, + GError **error) +{ + return g_key_file_get_integer (desktop_file->key_file, + EGG_DESKTOP_FILE_GROUP, key, + error); +} + char ** egg_desktop_file_get_string_list (EggDesktopFile *desktop_file, const char *key, diff --git a/egg/eggdesktopfile.h b/egg/eggdesktopfile.h index 44c093b..00ff6b7 100644 --- a/egg/eggdesktopfile.h +++ b/egg/eggdesktopfile.h @@ -129,6 +129,9 @@ gboolean egg_desktop_file_get_boolean (EggDesktopFile *desktop_file double egg_desktop_file_get_numeric (EggDesktopFile *desktop_file, const char *key, GError **error); +int egg_desktop_file_get_integer (EggDesktopFile *desktop_file, + const char *key, + GError **error); char **egg_desktop_file_get_string_list (EggDesktopFile *desktop_file, const char *key, gsize *length, -- cgit v1.2.1