summaryrefslogtreecommitdiff
path: root/multiload
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-30 14:27:07 +0200
committerraveit65 <[email protected]>2017-08-05 15:02:54 +0200
commitd5af8a09c84c22997ebb84e2a0c949950519ab37 (patch)
tree8d7bbd0830eb3223f14e93fecc35eeabb61bf1a3 /multiload
parent3d77c091475841c891785bcb8b2063f6801d36fd (diff)
downloadmate-applets-d5af8a09c84c22997ebb84e2a0c949950519ab37.tar.bz2
mate-applets-d5af8a09c84c22997ebb84e2a0c949950519ab37.tar.xz
multiload: don't use deprecated gtk_show_uri
Diffstat (limited to 'multiload')
-rw-r--r--multiload/main.c13
-rw-r--r--multiload/properties.c13
2 files changed, 20 insertions, 6 deletions
diff --git a/multiload/main.c b/multiload/main.c
index f7e11208..1f2722ab 100644
--- a/multiload/main.c
+++ b/multiload/main.c
@@ -73,10 +73,17 @@ help_cb (GtkAction *action,
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-multiload",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (ma->applet)),
- "help:mate-multiload",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-multiload",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) { /* FIXME: the user needs to see this */
g_warning ("help error: %s\n", error->message);
diff --git a/multiload/properties.c b/multiload/properties.c
index 4a091867..017f88da 100644
--- a/multiload/properties.c
+++ b/multiload/properties.c
@@ -83,10 +83,17 @@ properties_close_cb (GtkWidget *widget, gint arg, MultiloadApplet *ma)
{
case GTK_RESPONSE_HELP:
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-multiload/multiload-prefs",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (ma->applet)),
- "help:mate-multiload/multiload-prefs",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-multiload/multiload-prefs",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) { /* FIXME: the user needs to see this */
g_warning ("help error: %s\n", error->message);