Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nautilus for openSUSE:Factory 
checked in at 2023-05-13 17:17:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nautilus (Old)
 and      /work/SRC/openSUSE:Factory/.nautilus.new.1533 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nautilus"

Sat May 13 17:17:02 2023 rev:204 rq:1086655 version:44.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/nautilus/nautilus.changes        2023-04-25 
16:53:20.514104074 +0200
+++ /work/SRC/openSUSE:Factory/.nautilus.new.1533/nautilus.changes      
2023-05-13 17:17:09.926216847 +0200
@@ -1,0 +2,20 @@
+Wed May 10 17:25:20 UTC 2023 - Bjørn Lie <bjorn....@gmail.com>
+
+- Add upstream bug fix patches:
+  + 0e5b4c34.patch general: Use GtkSwitch active property
+    consistently. app-chooser sets the state instead of active
+    property. Similar to d7af60161d30c885ebab69c58b346896f1565387,
+    we really meant to set active (whether the switch is toggled)
+    and not the state (i.e. the color of the switch). Use
+    gtk_switch_set_active().
+    In properties we've already fixed this, but there's a lingering
+    call to gtk_switch_get_state(). This is probably fine because
+    state is in sync with active when the default handler is used,
+    but let's get :active, to be consistent and safe.
+  + 6e37d15f.patch window-slot: Manage search props set with
+    action. Manages search property change through "search-visible"
+    action. The action triggers other related functions that if not
+    executed will causes buggy behavior.
+    Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2875
+
+-------------------------------------------------------------------

New:
----
  0e5b4c34.patch
  6e37d15f.patch

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

Other differences:
------------------
++++++ nautilus.spec ++++++
--- /var/tmp/diff_new_pack.a64fGA/_old  2023-05-13 17:17:11.054223337 +0200
+++ /var/tmp/diff_new_pack.a64fGA/_new  2023-05-13 17:17:11.058223360 +0200
@@ -28,6 +28,12 @@
 Source1:        mount-archive.desktop
 Source2:        set_trusted.desktop
 Source3:        set_trusted.sh
+
+# PATCH-FIX-UPSTREAM 0e5b4c34.patch -- general: Use GtkSwitch active property 
consistently
+Patch1:         https://gitlab.gnome.org/GNOME/nautilus/-/commit/0e5b4c34.patch
+# PATCH-FIX-UPSTREAM 6e37d15f.patch -- window-slot: Manage search props set 
with action
+Patch2:         https://gitlab.gnome.org/GNOME/nautilus/-/commit/6e37d15f.patch
+
 # needed for directory ownership
 BuildRequires:  dbus-1
 BuildRequires:  fdupes

++++++ 0e5b4c34.patch ++++++
>From 0e5b4c34960f3481d1e2e74a73f0f876bf49e354 Mon Sep 17 00:00:00 2001
From: Corey Berla <co...@berla.me>
Date: Mon, 24 Apr 2023 08:36:13 -0700
Subject: [PATCH] general: Use GtkSwitch active property consistently

app-chooser sets the state instead of active property.  Similar to
d7af60161d30c885ebab69c58b346896f1565387, we really meant to set active
(whether the switch is toggled) and not the state (i.e. the color of the
switch).  Use gtk_switch_set_active()

In properties we've already fixed this, but there's a lingering call
to gtk_switch_get_state(). This is probably fine because state is
in sync with active when the default handler is used, but let's get
:active, to be consistent and safe.
---
 src/nautilus-app-chooser.c       | 2 +-
 src/nautilus-properties-window.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/nautilus-app-chooser.c b/src/nautilus-app-chooser.c
index 579ba1e1bc..9e4e1dcebb 100644
--- a/src/nautilus-app-chooser.c
+++ b/src/nautilus-app-chooser.c
@@ -105,7 +105,7 @@ on_application_selected (GtkAppChooserWidget *widget,
     default_app = g_app_info_get_default_for_type (self->content_type, FALSE);
     is_default = default_app != NULL && g_app_info_equal (info, default_app);
 
-    gtk_switch_set_state (GTK_SWITCH (self->set_as_default_switch), 
is_default);
+    gtk_switch_set_active (GTK_SWITCH (self->set_as_default_switch), 
is_default);
     gtk_widget_set_sensitive (GTK_WIDGET (self->set_as_default_switch), 
!is_default);
 }
 
diff --git a/src/nautilus-properties-window.c b/src/nautilus-properties-window.c
index 98fae514c8..529abfa1cb 100644
--- a/src/nautilus-properties-window.c
+++ b/src/nautilus-properties-window.c
@@ -2961,7 +2961,7 @@ execution_bit_changed (NautilusPropertiesWindow *self,
     const FilterType filter_type = FILES_ONLY;
 
     /* if activated from switch, switch state is already toggled, thus invert 
value via XOR. */
-    gboolean active = gtk_switch_get_state (self->execution_switch) ^ 
GTK_IS_SWITCH (widget);
+    gboolean active = gtk_switch_get_active (self->execution_switch) ^ 
GTK_IS_SWITCH (widget);
     gboolean set_executable = !active;
 
     update_permissions (self,
-- 
GitLab


++++++ 6e37d15f.patch ++++++
>From 6e37d15fe663107d280f6a516232c20f6d6c48fa Mon Sep 17 00:00:00 2001
From: Khalid Abu Shawarib <khalid.shawa...@gmail.com>
Date: Tue, 25 Apr 2023 22:52:24 +0000
Subject: [PATCH] window-slot: Manage search props set with action

Manages search property change thorugh "search-visible"
action. The action triggers other related functions that if not
executed will causes buggy behavior.

Fixes https://gitlab.gnome.org/GNOME/nautilus/-/issues/2875
---
 src/nautilus-window-slot.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/nautilus-window-slot.c b/src/nautilus-window-slot.c
index 785386ea13..1768675fe4 100644
--- a/src/nautilus-window-slot.c
+++ b/src/nautilus-window-slot.c
@@ -738,7 +738,16 @@ nautilus_window_slot_set_property (GObject      *object,
 
         case PROP_SEARCHING:
         {
-            nautilus_window_slot_set_searching (self, g_value_get_boolean 
(value));
+            /* Should be nautilus_window_slot_set_searching(), but then
+             * the search-visible action would get out of sync with this
+             * property. See discussion in 
https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1157
+             */
+            nautilus_window_slot_set_search_visible (self, g_value_get_boolean 
(value));
+            /* The previous call should have already caused the action
+             * to call nautilus_window_slot_set_searching(), but it
+             * doesn't hurt to make sure we set our boolean propperly.
+             */
+            self->searching = g_value_get_boolean (value);
         }
         break;
 
-- 
GitLab

Reply via email to