[krb5-auth-dialog] applet: Use gtk_show_uri with GTK4
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] applet: Use gtk_show_uri with GTK4
- Date: Tue, 18 Oct 2022 10:16:20 +0000 (UTC)
commit 748d00dc5bf11f8ca5e9a8d4ae858b919bc43f6e
Author: Guido Günther <agx sigxcpu org>
Date: Mon Oct 17 10:13:48 2022 +0200
applet: Use gtk_show_uri with GTK4
src/ka-tools.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/src/ka-tools.c b/src/ka-tools.c
index f17e519..98f15c0 100644
--- a/src/ka-tools.c
+++ b/src/ka-tools.c
@@ -32,7 +32,12 @@ ka_show_help (GtkWindow* window, const char* chapter)
url = g_strdup_printf("help:krb5-auth-dialog%s", section);
+#if GTK_CHECK_VERSION(4,0,0)
+ gtk_show_uri (window, url, GDK_CURRENT_TIME);
+#else
gtk_show_uri_on_window (window, url, gtk_get_current_event_time (), &error);
+#endif
+
if (error) {
GtkWidget *message_dialog;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]