Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package desktopfolder for openSUSE:Factory 
checked in at 2021-10-11 15:31:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/desktopfolder (Old)
 and      /work/SRC/openSUSE:Factory/.desktopfolder.new.2443 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "desktopfolder"

Mon Oct 11 15:31:24 2021 rev:14 rq:924295 version:1.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/desktopfolder/desktopfolder.changes      
2020-09-17 14:51:49.107966409 +0200
+++ /work/SRC/openSUSE:Factory/.desktopfolder.new.2443/desktopfolder.changes    
2021-10-11 15:32:19.770913482 +0200
@@ -1,0 +2,7 @@
+Fri Oct  8 21:06:53 UTC 2021 - Alexei Podvalsky <[email protected]>
+
+- Add 000-drop-gsettings-schema.patch
+- Add 001-dark-mode-support.patch
+- Spec file cleanup
+
+-------------------------------------------------------------------

New:
----
  000-drop-gsettings-schema.patch
  001-dark-mode-support.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ desktopfolder.spec ++++++
--- /var/tmp/diff_new_pack.N5gwav/_old  2021-10-11 15:32:20.182914143 +0200
+++ /var/tmp/diff_new_pack.N5gwav/_new  2021-10-11 15:32:20.186914150 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package desktopfolder
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,10 @@
 Group:          System/GUI/Other
 URL:            https://github.com/spheras/desktopfolder/
 Source:         
https://github.com/spheras/desktopfolder/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM -- https://github.com/spheras/desktopfolder/pull/328
+Patch0:         000-drop-gsettings-schema.patch
+# PATCH-FIX-UPSTREAM -- https://github.com/spheras/desktopfolder/pull/328
+Patch1:         001-dark-mode-support.patch
 BuildRequires:  fdupes
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  intltool
@@ -37,6 +41,7 @@
 BuildRequires:  pkgconfig(gio-unix-2.0)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gobject-2.0)
+BuildRequires:  pkgconfig(granite) >= 6.0.0
 BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22
 BuildRequires:  pkgconfig(gtksourceview-3.0)
 BuildRequires:  pkgconfig(json-glib-1.0)
@@ -55,6 +60,7 @@
 
 %prep
 %setup -q
+%autopatch -p1
 
 %build
 %meson

++++++ 000-drop-gsettings-schema.patch ++++++
diff -ruN desktopfolder-1.1.3.orig/src/Application.vala 
desktopfolder-1.1.3/src/Application.vala
--- desktopfolder-1.1.3.orig/src/Application.vala       2020-09-02 
15:32:39.000000000 +0300
+++ desktopfolder-1.1.3/src/Application.vala    2021-10-09 00:16:17.524670926 
+0300
@@ -128,8 +128,7 @@
             if (f_check_elementary.query_exists ()) {
                 // it seems we can't control an error reading settings!!
                 // loki -> GLib.Settings elementary_files_settings = new 
GLib.Settings ("org.pantheon.files.preferences");
-                GLib.Settings elementary_files_settings = new GLib.Settings 
("io.elementary.files.preferences");
-                single_click = elementary_files_settings.get_boolean 
("single-click");
+                single_click = false;
             }
         } catch (Error error) {
             // we don't have any files settings, using default config
++++++ 001-dark-mode-support.patch ++++++
diff -ruN desktopfolder-1.1.3.orig/meson.build desktopfolder-1.1.3/meson.build
--- desktopfolder-1.1.3.orig/meson.build        2020-09-02 15:32:39.000000000 
+0300
+++ desktopfolder-1.1.3/meson.build     2021-10-09 00:18:18.722505065 +0300
@@ -88,6 +88,7 @@
         dependency('glib-2.0'),
         dependency('gobject-2.0'),
         dependency('gtk+-3.0',version:'>=3.22'),
+        dependency('granite', version: '>= 6.0.0'),
         dependency('cairo'),
         dependency('json-glib-1.0'),
         dependency('gdk-pixbuf-2.0'),
diff -ruN desktopfolder-1.1.3.orig/src/Application.vala 
desktopfolder-1.1.3/src/Application.vala
--- desktopfolder-1.1.3.orig/src/Application.vala       2021-10-09 
00:18:39.319067731 +0300
+++ desktopfolder-1.1.3/src/Application.vala    2021-10-09 00:19:54.731827116 
+0300
@@ -82,6 +82,16 @@
      * @description activate life cycle
      */
     protected override void activate () {
+        // elementary OS 6 dark mode support
+        var granite_settings = Granite.Settings.get_default ();
+        var gtk_settings = Gtk.Settings.get_default ();
+
+        gtk_settings.gtk_application_prefer_dark_theme = 
granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;
+
+        granite_settings.notify["prefers-color-scheme"].connect (() => {
+            gtk_settings.gtk_application_prefer_dark_theme = 
granite_settings.prefers_color_scheme == Granite.Settings.ColorScheme.DARK;
+        });
+
         base.activate ();
         debug ("activate event");
         this.hold ();

Reply via email to