[gnome-bluetooth] lib: Adapt to gtk_init() API changes



commit 9b4882e57ca2ada4d138f9d5e28864607575e912
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Oct 27 12:22:24 2021 -0300

    lib: Adapt to gtk_init() API changes
    
    gtk_init() doesn't receive any arguments now, so just drop argc
    and argv when calling it.

 lib/test-class.c          | 2 +-
 lib/test-client.c         | 2 +-
 lib/test-pairing-dialog.c | 2 +-
 lib/test-settings.c       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/lib/test-class.c b/lib/test-class.c
index 73e405b1..35eaafc6 100644
--- a/lib/test-class.c
+++ b/lib/test-class.c
@@ -50,7 +50,7 @@ int main(int argc, char *argv[])
        GLogLevelFlags fatal_mask;
        guint class;
 
-       gtk_init(&argc, &argv);
+       gtk_init();
 
        fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
        fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL;
diff --git a/lib/test-client.c b/lib/test-client.c
index e077f24a..14d80928 100644
--- a/lib/test-client.c
+++ b/lib/test-client.c
@@ -298,7 +298,7 @@ int main(int argc, char *argv[])
 {
        GLogLevelFlags fatal_mask;
 
-       gtk_init(&argc, &argv);
+       gtk_init();
 
        fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
        fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL;
diff --git a/lib/test-pairing-dialog.c b/lib/test-pairing-dialog.c
index 6745bb72..aaaaa663 100644
--- a/lib/test-pairing-dialog.c
+++ b/lib/test-pairing-dialog.c
@@ -50,7 +50,7 @@ int main (int argc, char **argv)
        const char *pin = "123456";
        const char *device = "My device";
 
-       gtk_init (&argc, &argv);
+       gtk_init ();
 
        if (g_strcmp0 (argv[1], "pin-confirmation") == 0 ||
            argv[1] == NULL) {
diff --git a/lib/test-settings.c b/lib/test-settings.c
index 9d2045b5..ff14c400 100644
--- a/lib/test-settings.c
+++ b/lib/test-settings.c
@@ -13,7 +13,7 @@ int main (int argc, char **argv)
 {
        GtkWidget *window, *widget;
 
-       gtk_init (&argc, &argv);
+       gtk_init ();
 
        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
        gtk_widget_set_size_request (window, 300, 600);


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