summaryrefslogtreecommitdiff
path: root/mate-panel/libpanel-util
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-01-31 09:46:08 +0300
committermonsta <[email protected]>2018-01-31 09:46:08 +0300
commitab7987701bcea97e4326fecd161c3137080f6077 (patch)
tree3e49c11405cc69fab4b8a10ba4342cf70078d22a /mate-panel/libpanel-util
parentf553591e0562fd7b4bba0fe6a6182bc0b3747a34 (diff)
downloadmate-panel-ab7987701bcea97e4326fecd161c3137080f6077.tar.bz2
mate-panel-ab7987701bcea97e4326fecd161c3137080f6077.tar.xz
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'mate-panel/libpanel-util')
-rw-r--r--mate-panel/libpanel-util/panel-show.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/mate-panel/libpanel-util/panel-show.c b/mate-panel/libpanel-util/panel-show.c
index a4c7f6d7..19feac90 100644
--- a/mate-panel/libpanel-util/panel-show.c
+++ b/mate-panel/libpanel-util/panel-show.c
@@ -177,11 +177,9 @@ gboolean panel_show_uri(GdkScreen* screen, const gchar* uri, guint32 timestamp,
{
return panel_show_caja_search_uri(screen, uri, timestamp, error);
}
-#if GTK_CHECK_VERSION (3, 22, 0)
+
gtk_show_uri_on_window (NULL, uri,timestamp, &local_error);
-#else
- gtk_show_uri(screen, uri, timestamp, &local_error);
-#endif
+
return _panel_show_handle_error(uri, screen, local_error, error);
}
@@ -284,11 +282,8 @@ panel_show_help (GdkScreen *screen,
uri = g_strdup_printf ("help:%s/%s", doc, link);
else
uri = g_strdup_printf ("help:%s", doc);
-#if GTK_CHECK_VERSION (3, 22, 0)
+
gtk_show_uri_on_window (NULL, uri, gtk_get_current_event_time (), &local_error);
-#else
- gtk_show_uri (screen, uri, gtk_get_current_event_time (), &local_error);
-#endif
g_free (uri);
return _panel_show_help_handle_error (doc, screen, local_error, error);