[gnome-bluetooth] pairing-dialog: Use gtk_style_context_add_provider_for_display



commit 9905b373541bdb6a5ff1e911388e9f6d4f739c70
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Oct 27 14:00:32 2021 -0300

    pairing-dialog: Use gtk_style_context_add_provider_for_display
    
    In GTK4, GdkScreen became GdkDisplay, and so did the function names
    that operated on GdkScreens.

 lib/bluetooth-pairing-dialog.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index da30e735..c72356d7 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -261,9 +261,9 @@ bluetooth_pairing_dialog_init (BluetoothPairingDialog *self)
 
        provider = gtk_css_provider_new ();
        gtk_css_provider_load_from_resource (provider, "/org/gnome/bluetooth/bluetooth-settings.css");
-       gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
-                                                  GTK_STYLE_PROVIDER (provider),
-                                                  GTK_STYLE_PROVIDER_PRIORITY_USER);
+       gtk_style_context_add_provider_for_display (gdk_display_get_default (),
+                                                   GTK_STYLE_PROVIDER (provider),
+                                                   GTK_STYLE_PROVIDER_PRIORITY_USER);
        g_object_unref (provider);
 
 }


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