From 56a21c86bb4cbe389a2448cafde621b8b9e5878c Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 23 Jul 2015 22:13:54 +0200 Subject: GTK3: Replace uses of deprecated gdk_app_launch_context_new function >=gtk+.3.0.0 taken from: https://git.gnome.org/browse/eog/commit/?id=da78cc9 --- src/eom-window.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/eom-window.c b/src/eom-window.c index 4ab5d57..985368e 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -4177,7 +4177,12 @@ eom_window_open_editor (GtkAction *action, if (app_info == NULL) return; +#if GTK_CHECK_VERSION (3, 0, 0) + context = gdk_display_get_app_launch_context ( + gtk_widget_get_display (GTK_WIDGET (window))); +#else context = gdk_app_launch_context_new (); +#endif gdk_app_launch_context_set_screen (context, gtk_widget_get_screen (GTK_WIDGET (window))); gdk_app_launch_context_set_icon (context, -- cgit v1.2.1