diff options
Diffstat (limited to 'src/eom-window.c')
-rw-r--r-- | src/eom-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, |