diff options
author | raveit65 <[email protected]> | 2017-08-05 18:12:13 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-10 08:00:06 +0200 |
commit | 0e2e562d78ead7e685e6a01749571ee5234fbf2c (patch) | |
tree | 05511f0ea572f1bcbc357a71b27acf402bf919d8 /libmate-desktop | |
parent | 98bd17040267ddd3b96dc8159c3776c00330d463 (diff) | |
download | mate-desktop-0e2e562d78ead7e685e6a01749571ee5234fbf2c.tar.bz2 mate-desktop-0e2e562d78ead7e685e6a01749571ee5234fbf2c.tar.xz |
mate-desktop-item: mate-about: avoid deprecated gtk_show_uri
Diffstat (limited to 'libmate-desktop')
-rw-r--r-- | libmate-desktop/mate-desktop-item.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmate-desktop/mate-desktop-item.c b/libmate-desktop/mate-desktop-item.c index b86ab02..e1cf0a4 100644 --- a/libmate-desktop/mate-desktop-item.c +++ b/libmate-desktop/mate-desktop-item.c @@ -2080,10 +2080,17 @@ mate_desktop_item_launch_on_screen_with_env ( return -1; } +#if GTK_CHECK_VERSION (3, 22, 0) + retval = gtk_show_uri_on_window (NULL, + url, + GDK_CURRENT_TIME, + error); +#else retval = gtk_show_uri (screen, url, GDK_CURRENT_TIME, error); +#endif return retval ? 0 : -1; } |