diff options
author | raveit65 <[email protected]> | 2017-07-28 11:22:57 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-28 17:05:25 +0200 |
commit | 8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1 (patch) | |
tree | 870253080b491f5e6da4f782ca8729bb083fd22d /baobab/src/baobab-utils.c | |
parent | ce334fa530ff5b2d77c15f06a1a63d0532bbc3e2 (diff) | |
download | mate-utils-8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1.tar.bz2 mate-utils-8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1.tar.xz |
don't use deprecated gtk_show_uri
Diffstat (limited to 'baobab/src/baobab-utils.c')
-rw-r--r-- | baobab/src/baobab-utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/baobab/src/baobab-utils.c b/baobab/src/baobab-utils.c index e84d7b51..40b52145 100644 --- a/baobab/src/baobab-utils.c +++ b/baobab/src/baobab-utils.c @@ -506,8 +506,15 @@ baobab_help_display (GtkWindow *parent, g_strdup_printf ("help:%s/%s", file_name, link_id) : g_strdup_printf ("help:%s", file_name); +#if GTK_CHECK_VERSION (3, 22, 0) + ret = gtk_show_uri_on_window (parent, + uri, + gtk_get_current_event_time (), + &error); +#else ret = gtk_show_uri (gtk_window_get_screen (parent), uri, gtk_get_current_event_time (), &error); +#endif g_free (uri); if (error != NULL) { |