diff options
author | raveit65 <[email protected]> | 2017-07-30 15:44:37 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-05 15:02:54 +0200 |
commit | 892e3b55dcd9dc6385e26cebc43b4b39ddd33da7 (patch) | |
tree | 312934f1dba42b81d14a445dba78699b4932da26 /stickynotes/stickynotes.c | |
parent | 8498aff15a28ca9f3effd2d8ea048da8cc95f90f (diff) | |
download | mate-applets-892e3b55dcd9dc6385e26cebc43b4b39ddd33da7.tar.bz2 mate-applets-892e3b55dcd9dc6385e26cebc43b4b39ddd33da7.tar.xz |
stickynotes: don't use deprecated gtk_show_uri
Diffstat (limited to 'stickynotes/stickynotes.c')
-rw-r--r-- | stickynotes/stickynotes.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index 10428620..19ff0abb 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -375,10 +375,17 @@ static void response_cb (GtkWidget *dialog, gint id, gpointer data) { if (id == GTK_RESPONSE_HELP) +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (dialog), + "help:mate-stickynotes-applet/stickynotes-settings-individual", + gtk_get_current_event_time (), + NULL); +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)), - "help:mate-stickynotes-applet/stickynotes-settings-individual", - gtk_get_current_event_time (), - NULL); + "help:mate-stickynotes-applet/stickynotes-settings-individual", + gtk_get_current_event_time (), + NULL); +#endif else if (id == GTK_RESPONSE_CLOSE) gtk_widget_hide (dialog); } |