summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes.c
diff options
context:
space:
mode:
Diffstat (limited to 'stickynotes/stickynotes.c')
-rw-r--r--stickynotes/stickynotes.c13
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);
}