summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2018-12-17 10:26:28 +0800
committerlukefromdc <[email protected]>2018-12-21 22:47:02 +0000
commit6f1578fbfe2ca41ac0bae4a2abbbf2ddbf828a17 (patch)
tree54b4d052dbfb6e4974ba17355ec37a0ccb475814
parent0e2eb8a311586599bbd3937d413da2f78eedb4d6 (diff)
downloadmate-session-manager-6f1578fbfe2ca41ac0bae4a2abbbf2ddbf828a17.tar.bz2
mate-session-manager-6f1578fbfe2ca41ac0bae4a2abbbf2ddbf828a17.tar.xz
Remove X-GNOME-Autostart-Delay support
-rw-r--r--capplet/gsp-keyfile.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/capplet/gsp-keyfile.h b/capplet/gsp-keyfile.h
index 6e0b4ca..b66e896 100644
--- a/capplet/gsp-keyfile.h
+++ b/capplet/gsp-keyfile.h
@@ -34,7 +34,6 @@ extern "C" {
#endif
#define GSP_KEY_FILE_DESKTOP_KEY_AUTOSTART_ENABLED "X-MATE-Autostart-enabled"
-#define GSP_KEY_FILE_DESKTOP_KEY_GNOME_DELAY "X-GNOME-Autostart-Delay"
#define GSP_KEY_FILE_DESKTOP_KEY_DELAY "X-MATE-Autostart-Delay"
void gsp_key_file_populate (GKeyFile *keyfile);
@@ -49,8 +48,7 @@ gboolean gsp_key_file_get_boolean (GKeyFile *keyfile,
#define gsp_key_file_get_string(key_file, key) \
g_key_file_get_string (key_file, G_KEY_FILE_DESKTOP_GROUP, key, NULL)
#define gsp_key_file_get_delay(key_file) \
- (g_key_file_get_integer (key_file, G_KEY_FILE_DESKTOP_GROUP, GSP_KEY_FILE_DESKTOP_KEY_GNOME_DELAY, NULL) + \
- g_key_file_get_integer (key_file, G_KEY_FILE_DESKTOP_GROUP, GSP_KEY_FILE_DESKTOP_KEY_DELAY, NULL))
+ g_key_file_get_integer (key_file, G_KEY_FILE_DESKTOP_GROUP, GSP_KEY_FILE_DESKTOP_KEY_DELAY, NULL)
#define gsp_key_file_get_locale_string(key_file, key) \
g_key_file_get_locale_string(key_file, G_KEY_FILE_DESKTOP_GROUP, key, NULL, NULL)
@@ -59,11 +57,7 @@ gboolean gsp_key_file_get_boolean (GKeyFile *keyfile,
#define gsp_key_file_set_string(key_file, key, value) \
g_key_file_set_string (key_file, G_KEY_FILE_DESKTOP_GROUP, key, value)
#define gsp_key_file_set_delay(key_file, value) \
- do { \
- if (g_key_file_has_key (key_file, G_KEY_FILE_DESKTOP_GROUP, GSP_KEY_FILE_DESKTOP_KEY_GNOME_DELAY, NULL)) \
- g_key_file_remove_key (key_file, G_KEY_FILE_DESKTOP_GROUP, GSP_KEY_FILE_DESKTOP_KEY_GNOME_DELAY, NULL); \
- g_key_file_set_integer(key_file, G_KEY_FILE_DESKTOP_GROUP, GSP_KEY_FILE_DESKTOP_KEY_DELAY, value); \
- } while (0);
+ g_key_file_set_integer(key_file, G_KEY_FILE_DESKTOP_GROUP, GSP_KEY_FILE_DESKTOP_KEY_DELAY, value)
void gsp_key_file_set_locale_string (GKeyFile *keyfile,
const gchar *key,
const gchar *value);