summaryrefslogtreecommitdiff
path: root/egg
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-17 23:57:14 +0200
committerinfirit <[email protected]>2014-05-20 14:51:21 +0200
commit571a263ee76edf93ef466fd636792761d6d44484 (patch)
tree746e54f1b8ffac89a8aa7a0100481d66659ea8e9 /egg
parent1600fa4abec583748d1dc8ac60bde4d8984f8460 (diff)
downloadmate-session-manager-571a263ee76edf93ef466fd636792761d6d44484.tar.bz2
mate-session-manager-571a263ee76edf93ef466fd636792761d6d44484.tar.xz
Drop support for gtk+ < 2.24
Diffstat (limited to 'egg')
-rw-r--r--egg/eggdesktopfile.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/egg/eggdesktopfile.c b/egg/eggdesktopfile.c
index 83f9a4e..ca45eab 100644
--- a/egg/eggdesktopfile.c
+++ b/egg/eggdesktopfile.c
@@ -908,7 +908,6 @@ parse_link (EggDesktopFile *desktop_file,
return TRUE;
}
-#if GTK_CHECK_VERSION (2, 12, 0)
static char *
start_startup_notification (GdkDisplay *display,
EggDesktopFile *desktop_file,
@@ -1019,7 +1018,6 @@ set_startup_notification_timeout (GdkDisplay *display,
g_timeout_add_seconds (EGG_DESKTOP_FILE_SN_TIMEOUT_LENGTH,
startup_notification_timeout, sn_data);
}
-#endif /* GTK 2.12 */
static GPtrArray *
array_putenv (GPtrArray *env, char *variable)
@@ -1206,7 +1204,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
}
g_free (command);
-#if GTK_CHECK_VERSION (2, 12, 0)
startup_id = start_startup_notification (display, desktop_file,
argv[0], screen_num,
workspace, launch_time);
@@ -1217,9 +1214,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
env = array_putenv (env, startup_id_env);
g_free (startup_id_env);
}
-#else
- startup_id = NULL;
-#endif /* GTK 2.12 */
if (env != NULL)
g_ptr_array_add (env, NULL);
@@ -1237,7 +1231,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
if (startup_id)
{
-#if GTK_CHECK_VERSION (2, 12, 0)
if (current_success)
{
set_startup_notification_timeout (display, startup_id);
@@ -1248,7 +1241,6 @@ egg_desktop_file_launchv (EggDesktopFile *desktop_file,
g_free (startup_id);
}
else
-#endif /* GTK 2.12 */
g_free (startup_id);
}
else if (ret_startup_id)