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 /mate-dictionary | |
parent | ce334fa530ff5b2d77c15f06a1a63d0532bbc3e2 (diff) | |
download | mate-utils-8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1.tar.bz2 mate-utils-8f0a1c5bd44fc7d8d1d8dbf86e850688ce3a3da1.tar.xz |
don't use deprecated gtk_show_uri
Diffstat (limited to 'mate-dictionary')
-rw-r--r-- | mate-dictionary/src/gdict-pref-dialog.c | 4 | ||||
-rw-r--r-- | mate-dictionary/src/gdict-source-dialog.c | 4 | ||||
-rw-r--r-- | mate-dictionary/src/gdict-window.c | 6 |
3 files changed, 13 insertions, 1 deletions
diff --git a/mate-dictionary/src/gdict-pref-dialog.c b/mate-dictionary/src/gdict-pref-dialog.c index 1ac35cb3..006d5711 100644 --- a/mate-dictionary/src/gdict-pref-dialog.c +++ b/mate-dictionary/src/gdict-pref-dialog.c @@ -484,7 +484,11 @@ response_cb (GtkDialog *dialog, switch (response_id) { case GTK_RESPONSE_HELP: +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (dialog), +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)), +#endif "help:mate-dictionary/mate-dictionary-preferences", gtk_get_current_event_time (), &err); if (err) diff --git a/mate-dictionary/src/gdict-source-dialog.c b/mate-dictionary/src/gdict-source-dialog.c index 502f1578..589ae962 100644 --- a/mate-dictionary/src/gdict-source-dialog.c +++ b/mate-dictionary/src/gdict-source-dialog.c @@ -469,7 +469,11 @@ gdict_source_dialog_response_cb (GtkDialog *dialog, build_new_source (GDICT_SOURCE_DIALOG (dialog)); break; case GTK_RESPONSE_HELP: +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (dialog), +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)), +#endif "help:mate-dictionary/mate-dictionary-add-source", gtk_get_current_event_time (), &err); if (err) diff --git a/mate-dictionary/src/gdict-window.c b/mate-dictionary/src/gdict-window.c index 026cb9e9..0bc300c4 100644 --- a/mate-dictionary/src/gdict-window.c +++ b/mate-dictionary/src/gdict-window.c @@ -1243,8 +1243,12 @@ gdict_window_cmd_help_contents (GtkAction *action, GError *err = NULL; g_return_if_fail (GDICT_IS_WINDOW (window)); - + +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (window), +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (window)), +#endif "help:mate-dictionary", gtk_get_current_event_time (), &err); if (err) |