summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Karsay <gabor.karsay@gmx.at>2019-10-06 23:20:51 +0200
committerGabor Karsay <gabor.karsay@gmx.at>2019-10-07 11:33:34 +0200
commit5b4a62bc17db7b5c0c570a89d8dbaf7c407c12eb (patch)
tree359c276a127c9ddd408392a0ce3eebe639e4bad5
parent356fc94cc12ab7b2dd1e2f98afc50d181b59b15e (diff)
downloadtotem-5b4a62bc17db7b5c0c570a89d8dbaf7c407c12eb.tar.gz
main: Replace deprecated gtk_show_uri()
gtk_show_uri_on_window() is the recommended call to be used as it passes information necessary for sandbox helpers to parent their dialogs properly.
-rw-r--r--src/totem-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/totem-object.c b/src/totem-object.c
index 19d77f6ec..f6fa422a9 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -2216,7 +2216,7 @@ totem_object_show_help (TotemObject *totem)
{
GError *error = NULL;
- if (gtk_show_uri (gtk_widget_get_screen (totem->win), "help:totem", gtk_get_current_event_time (), &error) == FALSE) {
+ if (gtk_show_uri_on_window (GTK_WINDOW (totem->win), "help:totem", gtk_get_current_event_time (), &error) == FALSE) {
totem_object_show_error (totem, _("Totem could not display the help contents."), error->message);
g_error_free (error);
}