summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-23 09:22:43 +0200
committerraveit65 <[email protected]>2017-07-23 09:22:43 +0200
commitf0cd1df31fdd51db3245653426e58aa23d5379d8 (patch)
treee3be73008aea360253454c2649c5e57bf9ae1464 /src
parent87d0816704303908ece73bfb9ab84e33a4458a8b (diff)
downloadengrampa-f0cd1df31fdd51db3245653426e58aa23d5379d8.tar.bz2
engrampa-f0cd1df31fdd51db3245653426e58aa23d5379d8.tar.xz
don't use deprecated gtk_show_uri
Diffstat (limited to 'src')
-rw-r--r--src/fr-window.c5
-rw-r--r--src/gtk-utils.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/src/fr-window.c b/src/fr-window.c
index e453d35..0dbd135 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -2253,8 +2253,13 @@ open_folder (GtkWindow *parent,
if (folder == NULL)
return;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ if (! gtk_show_uri_on_window (parent, folder, GDK_CURRENT_TIME, &error)) {
+ GtkWidget *d;
+#else
if (! gtk_show_uri (gtk_window_get_screen (parent), folder, GDK_CURRENT_TIME, &error)) {
GtkWidget *d;
+#endif
char *utf8_name;
char *message;
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index a770619..10b6ecf 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -739,8 +739,13 @@ show_help_dialog (GtkWindow *parent,
GError *error = NULL;
uri = g_strconcat ("help:engrampa", section ? "/" : NULL, section, NULL);
+#if GTK_CHECK_VERSION (3, 22, 0)
+ if (! gtk_show_uri_on_window (parent, uri, GDK_CURRENT_TIME, &error)) {
+ GtkWidget *dialog;
+#else
if (! gtk_show_uri (gtk_window_get_screen (parent), uri, GDK_CURRENT_TIME, &error)) {
- GtkWidget *dialog;
+ GtkWidget *dialog;
+#endif
dialog = _gtk_message_dialog_new (parent,
GTK_DIALOG_DESTROY_WITH_PARENT,