[krb5-auth-dialog] applet: Adjust to GTK4's gtk_init changes
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] applet: Adjust to GTK4's gtk_init changes
- Date: Tue, 18 Oct 2022 10:16:20 +0000 (UTC)
commit 2fbc6c28e866963074e8b830ac9da39f7492e554
Author: Guido Günther <agx sigxcpu org>
Date: Mon Oct 17 10:13:47 2022 +0200
applet: Adjust to GTK4's gtk_init changes
src/ka-applet.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/ka-applet.c b/src/ka-applet.c
index 22228ae..fad94e2 100644
--- a/src/ka-applet.c
+++ b/src/ka-applet.c
@@ -167,7 +167,9 @@ ka_applet_local_command_line (GApplication *application,
context = g_option_context_new ("- Kerberos 5 credential checking");
g_option_context_add_main_entries (context, options, NULL);
+#if !GTK_CHECK_VERSION(4,0,0)
g_option_context_add_group (context, gtk_get_option_group (TRUE));
+#endif
g_option_context_parse (context, &argc, argv, &error);
if (error) {
@@ -787,7 +789,11 @@ main (int argc, char *argv[])
g_set_prgname (KA_APP_ID);
g_set_application_name (KA_NAME);
+#if GTK_CHECK_VERSION(4,0,0)
+ gtk_init ();
+#else
gtk_init (&argc, &argv);
+#endif
applet = ka_applet_new ();
return g_application_run (G_APPLICATION(applet), argc, argv);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]