diff options
author | lukefromdc <[email protected]> | 2017-07-28 23:44:13 -0400 |
---|---|---|
committer | lukefromdc <[email protected]> | 2017-07-29 13:17:11 -0400 |
commit | 33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed (patch) | |
tree | 0cf2f27fc73fa400c90dad18515f84d65be0f604 /applets/fish | |
parent | a3129a0b2d0e8e51f423af255f7d12b0bf741369 (diff) | |
download | mate-panel-33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed.tar.bz2 mate-panel-33c4bd47a7210cd9e695ea1a2cbf26abbc3b7bed.tar.xz |
don't use deprecated gtk_show_uri
Diffstat (limited to 'applets/fish')
-rw-r--r-- | applets/fish/fish.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/applets/fish/fish.c b/applets/fish/fish.c index a9387b88..dd06b9a4 100644 --- a/applets/fish/fish.c +++ b/applets/fish/fish.c @@ -151,10 +151,13 @@ static void show_help(FishApplet* fish, const char* link_id) uri = g_strdup_printf ("help:%s/%s", FISH_HELP_DOC, link_id); else uri = g_strdup_printf ("help:%s", FISH_HELP_DOC); - +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (NULL, uri, + gtk_get_current_event_time (), &error); +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (fish)), uri, gtk_get_current_event_time (), &error); - +#endif g_free (uri); if (error && |