]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-window.c
Fixes assertion fail on selecting text. See bug #561393.
[evince.git] / shell / ev-window.c
index ef96dce527ec0b6b1285c628657788d98fadf972..99dece092ffec12f8ecdabf2b65d1bd74c0499bc 100644 (file)
@@ -4902,9 +4902,11 @@ static void
 launch_external_uri (EvWindow *window, EvLinkAction *action)
 {
        const gchar *uri = ev_link_action_get_uri (action);
-       GAppLaunchContext *context = NULL;
        GError *error = NULL;
        gboolean ret;
+#if GTK_CHECK_VERSION (2, 14, 0)
+       GAppLaunchContext *context = NULL;
+#endif
 
 #if GTK_CHECK_VERSION (2, 14, 0)
        context = G_APP_LAUNCH_CONTEXT (gdk_app_launch_context_new ());