diff options
author | raveit65 <[email protected]> | 2017-07-22 16:44:42 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-22 16:44:42 +0200 |
commit | 2dd0cfd83a29b5a9897d250996fd6b1658dee617 (patch) | |
tree | 70b9893b378b08b0f2325100f120aae77709e812 | |
parent | 55a3c35ed8c10c8b10a5cf949c307664b87dddf5 (diff) | |
download | atril-2dd0cfd83a29b5a9897d250996fd6b1658dee617.tar.bz2 atril-2dd0cfd83a29b5a9897d250996fd6b1658dee617.tar.xz |
ev-window: don't use deprecated gtk_show_uri
-rw-r--r-- | shell/ev-window.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 9e537ae4..a2217882 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -4864,10 +4864,17 @@ ev_window_cmd_help_contents (GtkAction *action, EvWindow *ev_window) { GError *error = NULL; +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (ev_window), + EV_HELP, + gtk_get_current_event_time (), + &error); +#else gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (ev_window)), EV_HELP, gtk_get_current_event_time (), &error); +#endif if (error) { ev_window_error_message (ev_window, error, "%s", _("There was an error displaying help")); |