[gnome-music/wip/mschraal/gtk4: 8/52] application: *BROKEN* Use Gdk.Display
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4: 8/52] application: *BROKEN* Use Gdk.Display
- Date: Thu, 31 Oct 2019 15:38:24 +0000 (UTC)
commit 31a50295f73afedea95ae9455d7b326b2257ffd5
Author: Marinus Schraal <mschraal gnome org>
Date: Thu Oct 31 13:18:41 2019 +0100
application: *BROKEN* Use Gdk.Display
segfaults
gnomemusic/application.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/application.py b/gnomemusic/application.py
index 40d58cf7..0d2f5902 100644
--- a/gnomemusic/application.py
+++ b/gnomemusic/application.py
@@ -75,10 +75,10 @@ class Application(Gtk.Application):
def _init_style(self):
css_provider = Gtk.CssProvider()
css_provider.load_from_resource('/org/gnome/Music/org.gnome.Music.css')
- screen = Gdk.Screen.get_default()
+ display = Gdk.Display.get_default()
style_context = Gtk.StyleContext()
- style_context.add_provider_for_screen(
- screen, css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
+ # style_context.add_provider_for_display(
+ # display, css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
@GObject.Property(
type=Player, default=None, flags=GObject.ParamFlags.READABLE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]