Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nemo for openSUSE:Factory checked in 
at 2023-03-22 22:30:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nemo (Old)
 and      /work/SRC/openSUSE:Factory/.nemo.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nemo"

Wed Mar 22 22:30:49 2023 rev:51 rq:1073642 version:5.6.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/nemo/nemo.changes        2023-01-29 
14:32:36.138160550 +0100
+++ /work/SRC/openSUSE:Factory/.nemo.new.31432/nemo.changes     2023-03-22 
22:30:51.094256484 +0100
@@ -1,0 +2,14 @@
+Tue Mar 21 20:42:48 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 5.6.4:
+  * nemo-view-dnd.c: Fix the check for a web link's title, and
+    use the url if it's missing.
+  * nemo-mime-actions.c: Prioritize an http link to open in a
+    browser, regardless of the mimetype of the link's target.
+  * Fix for List View thumbnail scaling at HiDPI
+  * list-view: Scale the thumbnail correctly when applying
+    emblems, and fix the emblem sanity checks everywhere.
+  * file info: Use generic methods for attributes that aren't
+    guaranteed to be supported by the filesystem.
+
+-------------------------------------------------------------------

Old:
----
  nemo-5.6.3.tar.gz

New:
----
  nemo-5.6.4.tar.gz

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

Other differences:
------------------
++++++ nemo.spec ++++++
--- /var/tmp/diff_new_pack.gOcIfg/_old  2023-03-22 22:30:51.722259644 +0100
+++ /var/tmp/diff_new_pack.gOcIfg/_new  2023-03-22 22:30:51.726259664 +0100
@@ -20,7 +20,7 @@
 %define sover   1
 %define typelib typelib-1_0-Nemo-3_0
 Name:           nemo
-Version:        5.6.3
+Version:        5.6.4
 Release:        0
 Summary:        File browser for Cinnamon
 License:        GPL-2.0-or-later

++++++ nemo-5.6.3.tar.gz -> nemo-5.6.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/debian/changelog 
new/nemo-5.6.4/debian/changelog
--- old/nemo-5.6.3/debian/changelog     2023-01-18 17:11:48.000000000 +0100
+++ new/nemo-5.6.4/debian/changelog     2023-03-16 14:58:39.000000000 +0100
@@ -1,3 +1,18 @@
+nemo (5.6.4) vera; urgency=medium
+
+  [ Michael Webster ]
+  * nemo-view-dnd.c: Fix the check for a web link's title, and use the url if 
it's missing.
+  * nemo-mime-actions.c: Prioritize an http link to open in a browser, 
regardless of the mimetype of the link's target.
+
+  [ kain ]
+  * Fix for List View thumbnail scaling at HiDPI (#3187)
+
+  [ Michael Webster ]
+  * list-view: Scale the thumbnail correctly when applying emblems, and fix 
the emblem sanity checks everywhere.
+  * file info: Use generic methods for attributes that aren't guaranteed to be 
supported by the filesystem.
+
+ -- Clement Lefebvre <r...@linuxmint.com>  Thu, 16 Mar 2023 13:58:16 +0000
+
 nemo (5.6.3) vera; urgency=medium
 
   [ Michael Webster ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/libnemo-private/nemo-directory-async.c 
new/nemo-5.6.4/libnemo-private/nemo-directory-async.c
--- old/nemo-5.6.3/libnemo-private/nemo-directory-async.c       2023-01-18 
17:11:48.000000000 +0100
+++ new/nemo-5.6.4/libnemo-private/nemo-directory-async.c       2023-03-16 
14:58:39.000000000 +0100
@@ -824,6 +824,7 @@
 should_skip_file (NemoDirectory *directory, GFileInfo *info)
 {
        static gboolean show_hidden_files_changed_callback_installed = FALSE;
+    gboolean is_hidden;
 
        /* Add the callback once for the life of our process */
        if (!show_hidden_files_changed_callback_installed) {
@@ -838,13 +839,14 @@
                show_hidden_files_changed_callback (NULL);
        }
 
-       if (!show_hidden_files &&
-           (g_file_info_get_is_hidden (info) ||
-            g_file_info_get_is_backup (info))) {
-               return TRUE;
-       }
+    is_hidden = g_file_info_get_attribute_boolean (info, 
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN) ||
+                g_file_info_get_attribute_boolean (info, 
G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP);
 
-       return FALSE;
+    if (!show_hidden_files && is_hidden) {
+        return TRUE;
+    }
+
+    return FALSE;
 }
 
 static void
@@ -915,7 +917,8 @@
                        dir_load_state->load_file_count += 1;
 
                        /* Add the MIME type to the set. */
-                       mimetype = g_file_info_get_content_type (file_info);
+            mimetype = g_file_info_get_attribute_string (file_info, 
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
+
                        if (mimetype != NULL) {
                                istr_set_insert 
(dir_load_state->load_mime_list_hash,
                                                 mimetype);
@@ -2961,7 +2964,8 @@
                return;
        }
 
-       mime_type = g_file_info_get_content_type (info);
+    mime_type = g_file_info_get_attribute_string (info, 
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
+
        if (mime_type != NULL) {
                istr_set_insert (state->mime_list_hash, mime_type);
        }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/libnemo-private/nemo-file.c 
new/nemo-5.6.4/libnemo-private/nemo-file.c
--- old/nemo-5.6.3/libnemo-private/nemo-file.c  2023-01-18 17:11:48.000000000 
+0100
+++ new/nemo-5.6.4/libnemo-private/nemo-file.c  2023-03-16 14:58:39.000000000 
+0100
@@ -2274,6 +2274,7 @@
        const char *trash_orig_path;
        const char *group, *owner, *owner_real;
        gboolean free_owner, free_group;
+    const char *edit_name;
 
        if (file->details->is_gone) {
                return FALSE;
@@ -2304,9 +2305,11 @@
        }
        file->details->got_file_info = TRUE;
 
+    edit_name = g_file_info_get_attribute_string (info, 
G_FILE_ATTRIBUTE_STANDARD_EDIT_NAME);
+
        changed |= nemo_file_set_display_name (file,
                                                  g_file_info_get_display_name 
(info),
-                                                 g_file_info_get_edit_name 
(info),
+                                                 edit_name,
                                                  FALSE);
 
        file_type = g_file_info_get_file_type (info);
@@ -2339,13 +2342,15 @@
                }
        }
 
-       is_symlink = g_file_info_get_is_symlink (info);
+    is_symlink = g_file_info_get_attribute_boolean (info, 
G_FILE_ATTRIBUTE_STANDARD_IS_SYMLINK);
        if (file->details->is_symlink != is_symlink) {
                changed = TRUE;
        }
        file->details->is_symlink = is_symlink;
 
-       is_hidden = g_file_info_get_is_hidden (info) || 
g_file_info_get_is_backup (info);
+    is_hidden = g_file_info_get_attribute_boolean (info, 
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN) ||
+                g_file_info_get_attribute_boolean (info, 
G_FILE_ATTRIBUTE_STANDARD_IS_BACKUP);
+
        if (file->details->is_hidden != is_hidden) {
                changed = TRUE;
        }
@@ -2541,7 +2546,8 @@
        }
        file->details->size = size;
 
-       sort_order = g_file_info_get_sort_order (info);
+    sort_order = g_file_info_get_attribute_int32 (info, 
G_FILE_ATTRIBUTE_STANDARD_SORT_ORDER);
+
        if (file->details->sort_order != sort_order) {
                changed = TRUE;
        }
@@ -2603,9 +2609,8 @@
                file->details->thumbnailing_failed = thumbnailing_failed;
        }
 
-       symlink_name = is_symlink ?
-               g_file_info_get_symlink_target (info) :
-               NULL;
+    symlink_name = g_file_info_get_attribute_byte_string (info, 
G_FILE_ATTRIBUTE_STANDARD_SYMLINK_TARGET);
+
        if (g_strcmp0 (file->details->symlink_name, symlink_name) != 0) {
                changed = TRUE;
                g_free (file->details->symlink_name);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/nemo-5.6.3/libnemo-private/nemo-search-engine-advanced.c 
new/nemo-5.6.4/libnemo-private/nemo-search-engine-advanced.c
--- old/nemo-5.6.3/libnemo-private/nemo-search-engine-advanced.c        
2023-01-18 17:11:48.000000000 +0100
+++ new/nemo-5.6.4/libnemo-private/nemo-search-engine-advanced.c        
2023-03-16 14:58:39.000000000 +0100
@@ -910,7 +910,7 @@
        }
 
        while ((info = g_file_enumerator_next_file (enumerator, 
data->cancellable, NULL)) != NULL) {
-               if (g_file_info_get_is_hidden (info) && !data->show_hidden) {
+               if (g_file_info_get_attribute_boolean (info, 
G_FILE_ATTRIBUTE_STANDARD_IS_HIDDEN) && !data->show_hidden) {
                        goto next;
                }
 
@@ -946,7 +946,7 @@
 
                child = g_file_get_child (dir, g_file_info_get_name (info));
         if (hit) {
-            mime_type = g_file_info_get_content_type (info);
+            mime_type = g_file_info_get_attribute_string (info, 
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
 
             // Our helpers don't currently support uris, so we shouldn't at 
all -
             // probably best, as search would transfer the contents of every 
file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/meson.build new/nemo-5.6.4/meson.build
--- old/nemo-5.6.3/meson.build  2023-01-18 17:11:48.000000000 +0100
+++ new/nemo-5.6.4/meson.build  2023-03-16 14:58:39.000000000 +0100
@@ -1,7 +1,7 @@
 # Meson build file
 
 # https://github.com/linuxmint/nemo
-project('nemo', 'c', version: '5.6.3',
+project('nemo', 'c', version: '5.6.4',
   meson_version: '>=0.41.0'
 )
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/src/nemo-icon-view-container.c 
new/nemo-5.6.4/src/nemo-icon-view-container.c
--- old/nemo-5.6.3/src/nemo-icon-view-container.c       2023-01-18 
17:11:48.000000000 +0100
+++ new/nemo-5.6.4/src/nemo-icon-view-container.c       2023-03-16 
14:58:39.000000000 +0100
@@ -139,8 +139,8 @@
         if (s < size)
             size = s;
 
-        bad_ratio = (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > w ||
-                    (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > h;
+        bad_ratio = (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > (int)(w * 0.75) ||
+                    (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > (int)(h * 0.75);
 
         if (bad_ratio)
             goto skip_emblem; /* Would prefer to not use goto, but
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/src/nemo-icon-view-grid-container.c 
new/nemo-5.6.4/src/nemo-icon-view-grid-container.c
--- old/nemo-5.6.3/src/nemo-icon-view-grid-container.c  2023-01-18 
17:11:48.000000000 +0100
+++ new/nemo-5.6.4/src/nemo-icon-view-grid-container.c  2023-03-16 
14:58:39.000000000 +0100
@@ -116,8 +116,8 @@
         if (s < size)
             size = s;
 
-        bad_ratio = (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > w ||
-                    (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > h;
+        bad_ratio = (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > (int)(w * 0.75) ||
+                    (int)nemo_icon_get_emblem_size_for_icon_size (size) * 
scale > (int)(h * 0.75);
 
         if (bad_ratio)
             goto skip_emblem; /* Would prefer to not use goto, but
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/src/nemo-list-model.c 
new/nemo-5.6.4/src/nemo-list-model.c
--- old/nemo-5.6.3/src/nemo-list-model.c        2023-01-18 17:11:48.000000000 
+0100
+++ new/nemo-5.6.4/src/nemo-list-model.c        2023-03-16 14:58:39.000000000 
+0100
@@ -354,7 +354,7 @@
                 gint w, h, s;
                 gboolean bad_ratio;
 
-                initial_pixbuf = nemo_icon_info_get_pixbuf_at_size (icon_info, 
icon_size);
+                initial_pixbuf = nemo_icon_info_get_pixbuf_at_size (icon_info, 
icon_size * icon_scale);
 
                 w = gdk_pixbuf_get_width (initial_pixbuf);
                 h = gdk_pixbuf_get_height (initial_pixbuf);
@@ -363,8 +363,8 @@
                 if (s < icon_size)
                     icon_size = s;
 
-                bad_ratio = (int)(nemo_icon_get_emblem_size_for_icon_size 
(icon_size) * icon_scale) > w ||
-                            (int)(nemo_icon_get_emblem_size_for_icon_size 
(icon_size) * icon_scale) > h;
+                bad_ratio = (int)(nemo_icon_get_emblem_size_for_icon_size 
(icon_size) * icon_scale) > (int)(w * 0.75) ||
+                            (int)(nemo_icon_get_emblem_size_for_icon_size 
(icon_size) * icon_scale) > (int)(h * 0.75);
 
                 gicon = G_ICON (initial_pixbuf);
 
@@ -388,7 +388,7 @@
                 g_object_unref (gicon);
             }
 
-                       icon = nemo_icon_info_get_pixbuf_at_size (icon_info, 
icon_size);
+                       icon = nemo_icon_info_get_pixbuf_at_size (icon_info, 
icon_size * icon_scale);
 
                        nemo_icon_info_unref (icon_info);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/src/nemo-mime-actions.c 
new/nemo-5.6.4/src/nemo-mime-actions.c
--- old/nemo-5.6.3/src/nemo-mime-actions.c      2023-01-18 17:11:48.000000000 
+0100
+++ new/nemo-5.6.4/src/nemo-mime-actions.c      2023-03-16 14:58:39.000000000 
+0100
@@ -335,7 +335,7 @@
 GAppInfo *
 nemo_mime_get_default_application_for_file (NemoFile *file)
 {
-       GAppInfo *app;
+       GAppInfo *app = NULL;
        char *mime_type;
        char *uri_scheme;
 
@@ -345,18 +345,22 @@
         }
        }
 
-       mime_type = nemo_file_get_mime_type (file);
-       app = g_app_info_get_default_for_type (mime_type, !file_has_local_path 
(file));
-       g_free (mime_type);
+    uri_scheme = nemo_file_get_uri_scheme (file);
+
+    if (!g_str_has_prefix (uri_scheme, "http")) {
+        mime_type = nemo_file_get_mime_type (file);
+        app = g_app_info_get_default_for_type (mime_type, !file_has_local_path 
(file));
+        g_free (mime_type);
+    }
 
        if (app == NULL) {
-               uri_scheme = nemo_file_get_uri_scheme (file);
                if (uri_scheme != NULL) {
                        app = g_app_info_get_default_for_uri_scheme 
(uri_scheme);
-                       g_free (uri_scheme);
                }
        }
 
+    g_free (uri_scheme);
+
        return app;
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nemo-5.6.3/src/nemo-view-dnd.c 
new/nemo-5.6.4/src/nemo-view-dnd.c
--- old/nemo-5.6.3/src/nemo-view-dnd.c  2023-01-18 17:11:48.000000000 +0100
+++ new/nemo-5.6.4/src/nemo-view-dnd.c  2023-03-16 14:58:39.000000000 +0100
@@ -211,8 +211,8 @@
        }
 
        if (action == GDK_ACTION_LINK) {
-               if (g_strcmp0 (title, NULL) == 0) {
-                       link_name = g_file_get_basename (f);
+               if (g_strcmp0 (title, NULL) == 0 || strlen (title) == 0) {
+                       link_name = g_strdup (url);
                } else {
                        link_name = g_strdup (title);
                }

Reply via email to