From e638ef06942a1812e4aa0235b1f120ba50821aef Mon Sep 17 00:00:00 2001 From: LAGonauta <lagonauta@gmail.com> Date: Thu, 25 Aug 2022 09:29:47 -0300 Subject: [PATCH] Fixed using GTK3 instead of GTK4 --- plugins/win32-fonts/CMakeLists.txt | 2 +- plugins/win32-fonts/src/plugin.vala | 2 +- plugins/windows-notification/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/win32-fonts/CMakeLists.txt b/plugins/win32-fonts/CMakeLists.txt index b5a80e52..3aa47ebd 100644 --- a/plugins/win32-fonts/CMakeLists.txt +++ b/plugins/win32-fonts/CMakeLists.txt @@ -3,7 +3,7 @@ find_packages(WIN32_FONTS_PACKAGES REQUIRED GLib GModule GObject - GTK3 + GTK4 ) set(RESOURCE_LIST diff --git a/plugins/win32-fonts/src/plugin.vala b/plugins/win32-fonts/src/plugin.vala index 1d9d00bd..9d8dd5dc 100644 --- a/plugins/win32-fonts/src/plugin.vala +++ b/plugins/win32-fonts/src/plugin.vala @@ -7,7 +7,7 @@ public class Plugin : RootInterface, Object { public void registered(Dino.Application app) { CssProvider larger_fonts = new CssProvider(); larger_fonts.load_from_resource("/im/dino/Dino/win32-fonts/larger.css"); - StyleContext.add_provider_for_screen(Gdk.Screen.get_default(), larger_fonts, STYLE_PROVIDER_PRIORITY_APPLICATION); + StyleContext.add_provider_for_display(Gdk.Display.get_default(), larger_fonts, STYLE_PROVIDER_PRIORITY_APPLICATION); } public void shutdown() { } diff --git a/plugins/windows-notification/CMakeLists.txt b/plugins/windows-notification/CMakeLists.txt index a4d130dd..a34d3627 100644 --- a/plugins/windows-notification/CMakeLists.txt +++ b/plugins/windows-notification/CMakeLists.txt @@ -10,7 +10,7 @@ find_packages(WINDOWS_NOTIFICATION_PACKAGES REQUIRED GLib GModule GObject - GTK3 + GTK4 ) vala_precompile(WINDOWS_NOTIFICATION_VALA_C