diff options
author | raveit65 <[email protected]> | 2015-07-23 22:13:54 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-31 22:35:17 +0200 |
commit | 56a21c86bb4cbe389a2448cafde621b8b9e5878c (patch) | |
tree | 2f39922b78fb083eeee54e5475cb9622448d6d16 | |
parent | 5f23729c16860703ca8e7343927009f03b39b6ba (diff) | |
download | eom-56a21c86bb4cbe389a2448cafde621b8b9e5878c.tar.bz2 eom-56a21c86bb4cbe389a2448cafde621b8b9e5878c.tar.xz |
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
-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, |