diff options
author | raveit65 <[email protected]> | 2017-07-22 17:19:34 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-22 18:00:49 +0200 |
commit | 07a0a6ba9a536561533ac3b1b283d999f5dfd489 (patch) | |
tree | 8c00ee88698c4b0b4ad8b72202c3246ff2b65aab /src/file-manager | |
parent | 7fd994d1573c77bdcc10e9a2c834c89a04955474 (diff) | |
download | caja-07a0a6ba9a536561533ac3b1b283d999f5dfd489.tar.bz2 caja-07a0a6ba9a536561533ac3b1b283d999f5dfd489.tar.xz |
don't use deprecated gtk_show_uri
Diffstat (limited to 'src/file-manager')
-rw-r--r-- | src/file-manager/fm-directory-view.c | 6 | ||||
-rw-r--r-- | src/file-manager/fm-properties-window.c | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 1d8c8b5b..99996801 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -1170,9 +1170,15 @@ pattern_select_response_cb (GtkWidget *dialog, int response, gpointer user_data) break; case GTK_RESPONSE_HELP : error = NULL; +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (dialog), + "help:mate-user-guide/caja-select-pattern", + gtk_get_current_event_time (), &error); +#else gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog)), "help:mate-user-guide/caja-select-pattern", gtk_get_current_event_time (), &error); +#endif if (error) { eel_show_error_dialog (_("There was an error displaying help."), error->message, GTK_WINDOW (dialog)); diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 90ea68cd..1ae66b62 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -5405,10 +5405,17 @@ real_response (GtkDialog *dialog, switch (response) { case GTK_RESPONSE_HELP: +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (dialog), + "help:mate-user-guide/goscaja-51", + gtk_get_current_event_time (), + &error); +#else gtk_show_uri (gtk_window_get_screen (GTK_WINDOW (dialog)), "help:mate-user-guide/goscaja-51", gtk_get_current_event_time (), &error); +#endif if (error != NULL) { eel_show_error_dialog (_("There was an error displaying help."), error->message, GTK_WINDOW (dialog)); |