summaryrefslogtreecommitdiff
path: root/libmate-desktop
AgeCommit message (Collapse)AuthorFilesLines
2022-11-09Revert "[mate-bg] small cleanup"Colomban Wendling1-9/+8
It is not possible to use the `list` pointer after it has been deleted, so the "cleanup" this commit made lead to using freed memory if any item actually got clean up. This "cleanup" also don't seem meaningful to me, as all it does otherwise is trade an assignation for a redundant test -- either of which the compiler might happily optimize out. This reverts commit 47426c90d10e9f738ecf89f35db94ca8deff55e0.
2022-08-20mate-desktop-item: time_t mtime -> gint64 mtimerbuj1-5/+5
The timestamp is compared with g_file_info_get_attribute_uint64 in mate_desktop_item_get_file_status (const MateDesktopItem *item)
2022-08-20mate-bg: time_t mtime -> gint64 mtimerbuj1-19/+8
The timestamp is retrieved with g_file_info_get_attribute_uint64 in get_mtime (const char *filename)
2022-08-20Fix implicit conversion changes signedness: 'gboolean' to 'guint'rbuj2-3/+3
2022-08-20mate-desktop-thumbnail: fix memory leakrbuj1-0/+1
2022-08-20Fix build warnings about missing field initializerrbuj1-3/+3
2022-08-20mate-bg: fix memory leakrbuj1-3/+7
2022-08-20mate-bg: Dereference of null pointerrbuj1-1/+1
2022-08-20mate-desktop-item: macro is not used [-Wunused-macros]rbuj1-2/+0
2022-08-20mate-colorsel: macro is not used [-Wunused-macros]rbuj1-2/+0
2022-08-20mate-bg: macro is not used [-Wunused-macros]rbuj1-4/+0
2022-08-15mate-colorbutton: fix -Wenum-conversion warningrbuj1-1/+1
2022-08-15mate-rr: fix -Wsign-compare warningrbuj1-4/+4
2022-08-15mate-rr-config: fix -Wsign-compare warningrbuj1-2/+2
2022-08-15mate-bg: fix -Wsign-compare warningrbuj1-1/+1
2022-08-15display-name: fix -Wsign-compare warningrbuj1-2/+2
2021-12-11Use a blank line at mostrbuj17-65/+0
2021-07-21Replace the obsolete API in mate-colorsel.c filezhuyaliang1-15/+40
2021-07-19Fix compilation warningzhuyaliang3-24/+57
2021-06-21update copyright to 2021raveit6511-0/+11
2021-03-29Remove shadow warnings [-Wshadow]rbuj3-11/+7
2021-02-27Remove warning -Wbad-function-castrbuj4-36/+57
2021-02-08g_settings_get_string always returns a newly-allocated stringrbuj2-14/+9
2020-08-06mate-languages: portability of localedir fallbackrbuj1-6/+13
2020-08-04mate-desktop-thumbnail: Remove trailing spaces/tabsrbuj1-1/+1
find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/[[:space:]]*$//' {} \; find . \( -name '*.h' -o -name '*.c' \) -exec sed -i 's/\t*$//' {} \;
2020-03-03mate-bg: remove warning function declaration isn’t a prototyperbuj1-1/+1
2020-03-03Remove warnings: cast between incompatible function typesrbuj2-19/+8
2020-02-17build: add meson config files to EXTRA_DISTraveit651-2/+4
fixes https://github.com/mate-desktop/mate-desktop/issues/431
2020-02-16Remove GTimeVal deprecation warning for GLib 2.61.2+rbuj3-3/+45
2020-02-16thumbnail: fix typo in function descriptionmonsta1-1/+1
2020-01-18thumbnail: Remove obsolete mate_desktop_thumbnail_md5()Bastien Nocera3-22/+0
https://bugzilla.gnome.org/show_bug.cgi?id=785198 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/8663695
2020-01-18thumbnail: Remove obsolete pixbuf helperBastien Nocera5-82/+0
https://bugzilla.gnome.org/show_bug.cgi?id=785198 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/2887d75
2020-01-18thumbnail: Use an array to store the thumbnailer's cmdlineBastien Nocera1-48/+104
Instead of a shell-quoted string, to make it easier to add new elements to this command-line. origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/483ea2e
2020-01-18thumbnail: Use g_strcmp0() and remove a NULL checkBastien Nocera1-7/+2
origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/a5188e5
2020-01-18thumbnail: Simplify system includesBastien Nocera1-12/+3
origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/1c9cabf
2020-01-18thumbnail: Fix typo in optionalBastien Nocera1-1/+1
origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/fdb6fd1
2020-01-18thumbnail: Remove unused constant SECONDS_BETWEEN_STATSBastien Nocera1-2/+0
2020-01-18thumbnail: Remove unused #define GDK_PIXBUF_ENABLE_BACKENDBastien Nocera1-1/+0
origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/b025840
2020-01-18thumbnail: Remove reference to MateIconFactoryBastien Nocera1-1/+1
origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/a63a558
2020-01-18thumbnail: Simplify init_thumbnailers_dirs()Bastien Nocera1-9/+8
origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/a0702a2
2020-01-09thumbnail: some code-styling fixesraveit652-115/+112
- replace remaining tabs with spaces - fixes some indents
2020-01-09Deprecate mate_desktop_thumbnail_scale_down_pixbuf()Bastien Nocera2-121/+17
As scaling down by huge factors is now fixed in gdk-pixbuf. Require the newer gdk-pixbuf as well, to avoid running into a pre-fix version. https://bugzilla.gnome.org/show_bug.cgi?id=775991 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/cb64228
2020-01-09thumbnailer: Always prefer the backend provided previewBastien Nocera1-2/+64
If a preview exists for a particular file, in particular a preview icon for videos and images on external devices, prefer those to running a script. https://bugzilla.gnome.org/show_bug.cgi?id=738503 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/370b985 https://gitlab.gnome.org/GNOME/gnome-desktop/commit/e629e46 https://gitlab.gnome.org/GNOME/gnome-desktop/commit/a15db1d https://gitlab.gnome.org/GNOME/gnome-desktop/commit/fc19c94
2020-01-09thumbnail: Always use external gdk-pixbuf thumbnailerBastien Nocera2-361/+3
Instead of special-casing gdk-pixbuf-supported image formats, use an external thumbnailer. This will give us the ability to: - cancel running thumbnail operations - avoid memory leaks, buffer overflows, double-frees, etc. in the image loaders having an impact on the application - limit resource usage when thumbnailing https://bugzilla.gnome.org/show_bug.cgi?id=768064 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/b69fde6 https://gitlab.gnome.org/GNOME/gnome-desktop/commit/dba6d95
2020-01-09thumbnail: Demote a log message from WARNING to DEBUGraveit651-1/+1
Failure to create a GdkPixbufLoader for a specific MIME type doesn't necessarily indicate an error. It is possible that the fallback code would still be able to parse the image data. For example, Canon CR2 RAW files have the MIME type image/x-canon-cr2. While we don't have a loader for that specific MIME type, the TIFF loader can still parse the data. In case the fallback code failed to parse the image data, we get a WARNING anyway: MateDesktop-WARNING **: Error creating thumbnail for ... Having a log message to indicate that we are using the fallback code is useful for debugging, but there is no need for the WARNING. It can be extra noise and needlessly interferes with things like G_DEBUG=fatal-warnings. https://bugzilla.gnome.org/show_bug.cgi?id=762504 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/7507254
2020-01-09thumbnail factory: Disconnect signal handlers in finalizeMatthias Clasen1-46/+43
We are seeing crashes in Fedora that point at the settings signal handlers getting run after the thumbnail factory is finalized. Explicitly disconnecting the handlers in finalize is the right thing to do, anyway. While we are at it, replace some of the cleanup code in finalize with g_clear_pointer and g_clear_object, as suggested by Colin. https://bugzilla.gnome.org/show_bug.cgi?id=761049 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/f32c389
2020-01-09thumbnail: Move thumbnail generation/saving to a few helperJasper St. Pierre1-203/+127
functions Another cleanup in preparation for a new "simple" thumbnail API. https://bugzilla.gnome.org/show_bug.cgi?id=684026 https://bugzilla.gnome.org/show_bug.cgi?id=784915 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/97f6f77 https://gitlab.gnome.org/GNOME/gnome-desktop/commit/ef4734f https://gitlab.gnome.org/GNOME/gnome-desktop/commit/911091d
2020-01-09thumbnail: Clean up path generation codeJasper St. Pierre1-100/+66
Put the path calculation code in one spot. https://bugzilla.gnome.org/show_bug.cgi?id=684026 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/57c18b8 https://gitlab.gnome.org/GNOME/gnome-desktop/commit/ef0f02e
2020-01-09thumbnailer: Try harder to create a failed thumbnailJuan Antonio Marin1-13/+9
If a failed thumbnail is created because the pixbuf fail to save (for instance if user is over quota) we should still try to rename the temporary file that might have been created. If not, the thumbnail will not be marked as failed, and thumbnailing will be reattempted. https://bugzilla.gnome.org/show_bug.cgi?id=728775 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/54f68ab
2020-01-09Add missing cases to switch statementPhilip Withnall1-41/+103
This shuts up a gcc warning by adding support for thumbnail directories being unmounted or moved. https://bugzilla.gnome.org/show_bug.cgi?id=709819 origin commit: https://gitlab.gnome.org/GNOME/gnome-desktop/commit/c064fab