[gnome-software: 12/110] gs-cmd: Update gtk_init to GTK4 API changes




commit cb3ebb415b23b5d29d9f577bc4d409f2e4dd6251
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Aug 21 12:39:40 2021 -0300

    gs-cmd: Update gtk_init to GTK4 API changes
    
    gtk_init() does not receive any arguments anymore, and there is
    no GTK option context in GTK4.

 lib/gs-cmd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/lib/gs-cmd.c b/lib/gs-cmd.c
index cb2add048..3c30f59e4 100644
--- a/lib/gs-cmd.c
+++ b/lib/gs-cmd.c
@@ -331,12 +331,11 @@ main (int argc, char **argv)
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
        textdomain (GETTEXT_PACKAGE);
 
-       gtk_init (&argc, &argv);
+       gtk_init ();
 
        context = g_option_context_new (NULL);
        g_option_context_set_summary (context, "GNOME Software Test Program");
        g_option_context_add_main_entries (context, options, NULL);
-       g_option_context_add_group (context, gtk_get_option_group (TRUE));
        ret = g_option_context_parse (context, &argc, &argv, &error);
        if (!ret) {
                g_print ("Failed to parse options: %s\n", error->message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]