summaryrefslogtreecommitdiff
path: root/geyes
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-30 10:04:06 +0200
committerraveit65 <[email protected]>2017-08-05 15:02:54 +0200
commit822ccb7f2f14f839291b79efdb938912a1217806 (patch)
treed2b843209e93741fdcd127336a3e796db3df0876 /geyes
parentbc0dc6b21a7e0cbe6c05829a031ffc65c5d72ba6 (diff)
downloadmate-applets-822ccb7f2f14f839291b79efdb938912a1217806.tar.bz2
mate-applets-822ccb7f2f14f839291b79efdb938912a1217806.tar.xz
geyes: don't use deprecated gtk_show_uri
Diffstat (limited to 'geyes')
-rw-r--r--geyes/geyes.c13
-rw-r--r--geyes/themes.c13
2 files changed, 20 insertions, 6 deletions
diff --git a/geyes/geyes.c b/geyes/geyes.c
index 5a49d129..22b3bbcb 100644
--- a/geyes/geyes.c
+++ b/geyes/geyes.c
@@ -342,10 +342,17 @@ help_cb (GtkAction *action,
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-geyes",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (eyes_applet->applet)),
- "help:mate-geyes",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-geyes",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) {
GtkWidget *dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,
diff --git a/geyes/themes.c b/geyes/themes.c
index 3af628c8..01924ea8 100644
--- a/geyes/themes.c
+++ b/geyes/themes.c
@@ -212,10 +212,17 @@ phelp_cb (GtkDialog *dialog)
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (GTK_WINDOW (dialog),
+ "help:mate-geyes/geyes-settings",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)),
- "help:mate-geyes/geyes-settings",
- gtk_get_current_event_time (),
- &error);
+ "help:mate-geyes/geyes-settings",
+ gtk_get_current_event_time (),
+ &error);
+#endif
if (error) {
GtkWidget *error_dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE,