summaryrefslogtreecommitdiff
path: root/trashapplet
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-30 16:47:28 +0200
committerraveit65 <[email protected]>2017-08-05 15:02:54 +0200
commite4e1cd103054a231d804a8a0cedf2335fe68aa66 (patch)
tree2ef42c8a21805eed0fdcf989b86e1becfae9ac06 /trashapplet
parent892e3b55dcd9dc6385e26cebc43b4b39ddd33da7 (diff)
downloadmate-applets-e4e1cd103054a231d804a8a0cedf2335fe68aa66.tar.bz2
mate-applets-e4e1cd103054a231d804a8a0cedf2335fe68aa66.tar.xz
trashapplet: don't use deprecated gtk_show_uri
Diffstat (limited to 'trashapplet')
-rw-r--r--trashapplet/src/trashapplet.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index 119f3111..f18053eb 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -368,10 +368,17 @@ trash_applet_open_folder (GtkAction *action,
{
GError *err = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "trash:",
+ gtk_get_current_event_time (),
+ &err);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (applet)),
"trash:",
gtk_get_current_event_time (),
&err);
+#endif
if (err)
{
@@ -388,10 +395,17 @@ trash_applet_show_help (GtkAction *action,
GError *err = NULL;
/* FIXME - Actually, we need a user guide */
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-trashapplet",
+ gtk_get_current_event_time (),
+ &err);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (applet)),
"help:mate-trashapplet",
gtk_get_current_event_time (),
&err);
+#endif
if (err)
{