summaryrefslogtreecommitdiff
path: root/cut-n-paste/smclient/eggdesktopfile.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-17 04:20:10 +0200
committerinfirit <[email protected]>2014-09-23 13:31:02 +0200
commitd51892aff7ea9fd49a29e6bc24333753083e798a (patch)
tree497ffd908a12def5728093a5d54a9e96f0a820fe /cut-n-paste/smclient/eggdesktopfile.c
parent5a584acf7d6034f3e3854377ab883df76b25e9fd (diff)
downloadatril-d51892aff7ea9fd49a29e6bc24333753083e798a.tar.bz2
atril-d51892aff7ea9fd49a29e6bc24333753083e798a.tar.xz
Drop support for gtk+ < 2.24
Diffstat (limited to 'cut-n-paste/smclient/eggdesktopfile.c')
-rw-r--r--cut-n-paste/smclient/eggdesktopfile.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/cut-n-paste/smclient/eggdesktopfile.c b/cut-n-paste/smclient/eggdesktopfile.c
index 1f432adc..d50a1bcf 100644
--- a/cut-n-paste/smclient/eggdesktopfile.c
+++ b/cut-n-paste/smclient/eggdesktopfile.c
@@ -909,7 +909,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,
@@ -1020,7 +1019,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)
@@ -1207,7 +1205,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);
@@ -1218,9 +1215,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);
@@ -1238,7 +1232,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);
@@ -1249,7 +1242,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)