summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file.c
AgeCommit message (Collapse)AuthorFilesLines
2019-03-07eel: remove g_str_list_copyrbuj1-2/+2
GNOME/nautilus@61e2aff Replace eel_g_str_list_copy(Glist *list) with g_list_copy_deep (list, (GCopyFunc) g_strdup, NULL)
2019-03-06caja-file: Fix use of memory after it is freedPablo Barciela1-7/+13
to avoid warning with Clang Analyzer
2019-01-31Avoid deprecated g_type_class_add_private under libcaja-privateWu Xiaotian1-3/+2
Changed CajaFileConflictDialog and CajaFile
2019-01-03[libcaja-private] Re-check file MIME type before picking an application.Max Eliaser1-0/+18
An example of when the MIME type might change: a file is initially created with 0 bytes of content, but more data is added later. Empty files are always detected as plain text, but the file might not be empty anymore when the user opens it. This commit affects the behavior when double-clicking a file and when right- clicking on it too.
2018-12-27Minor code-quality enhancementsSargastic1-6/+6
2018-12-27Forgot to initialize is_backup fieldSargastic1-0/+1
2018-12-27Add independent show/hide backup filesSargastic1-8/+22
2018-11-02CajaFile: fix crash in modify_link_hash_tableMichael Catanzaro1-1/+1
We crash in g_hash_table_lookup_extended if the file's symlink_name is set but the file is not a symlink, since the hash function (g_str_hash) does not allow NULL values but target_uri is NULL. https://bugzilla.gnome.org/show_bug.cgi?id=711583 Adapted from https://gitlab.gnome.org/GNOME/nautilus/commit/c2a5e052
2018-10-03Caja-icon-info: Optimize icon lookups by GIcon.lukefromdc1-9/+7
The caja_icon_info_lookup method was potentially doing multiple icon lookups for a single icon, as well as triggering an additional fallback lookup when returning an empty (no pixbuf) CajaIconInfo to CajaFile. This streamlines and simplifies the lookup process. The hash table lookup always occurs first, before any Gtk icon cache lookup is made (these are expensive, according to perf analysis,) and a returned icon info will *always* be added to a hash table, potentially already containing a fallback icon. GIcons stringify well enough to use the strings exclusively for hash keys. This eliminates the extra cost of looking up filenames from the Gtk icon cache. Ported from github.com/linuxmint/nemo/commit/98843e26b48cd3526cacfe90cfa4ba201d1f3aee where this benchmark resulted for Nemo: .# sync; echo 3 > /proc/sys/vm/drop_caches mtwebster:~/bin/nemo[master]> NEMO_BENCHMARK_LOADING=1 nemo /usr/bin with: Nemo startup time: 2.011817 seconds Folder load time: 1.158854 seconds Idle...Folder load time: 1.226699 seconds without: Nemo startup time: 2.464361 seconds Folder load time: 1.591494 seconds Idle...Folder load time: 1.692273 seconds
2018-04-08Add sort criterion by reversed extension segmentsMoritz Bruder1-0/+200
The basenames of files are split by dots and then starting from the end each segment is compared to find a sort order. Example: bar.tar.bz2 foo.tar.bz2 a.bar.gz x.tar.gz z.tar.gz test.tex A heuristic determines what extension segments are part of the extension. There is probably no perfect solution but there are much less false positives. As a result the sorting is more intuitive and the displayed column in the list view is better readable and displays extensions more accurately. In addition a bug related to the default sort criteria in the preferences has been fixed.
2018-04-04file: support HiDpi for thumbnails imagesCosimo Cecchi1-3/+3
This was missing from the last commit. origin commit: https://gitlab.gnome.org/GNOME/nautilus/commit/b3b4bea5
2018-04-04Support HiDpi iconsCosimo Cecchi1-15/+17
Port the rendering of icons to cairo surfaces, so that we can apply the GDK scale factor when rendering icons. origin commit: https://gitlab.gnome.org/GNOME/nautilus/commit/0d4555d7
2017-05-25added feature: present the size on disk of files as we present the size of ↵Felipe Barriga Richards1-38/+165
the file.
2017-04-20file: make caja_file_get_gicon return custom icons too (#765)monsta1-0/+5
fixes https://github.com/mate-desktop/caja/issues/410 taken from: https://git.gnome.org/browse/nautilus/commit/?id=f1c782c13dd675bafffb2a4d85900da52be88f3f
2017-04-18don't parse .hidden files manually - GIO does it since 2.36monsta1-10/+1
taken from: https://git.gnome.org/browse/nautilus/commit/?id=ace6d2c2170028148785f3fa87eedf883f20f1dd GIO commit for reference: https://git.gnome.org/browse/glib/commit/?id=510ba9b4efe1813e24c6dfa7405c3547bf9efdd7
2016-12-29file: don't consider all desktop files caja linkslukefromdc1-3/+6
Only those which match application/x-desktop directly. Apply Nautilus commit https://github.com/GNOME/nautilus/commit/b241fd28913e87fe01419e4922259949a11c973f
2016-10-10Fix hashtable warnings on closelukefromdc1-2/+1
As in Nautilus, use g_hash_table_new rather than eel_g_hash_table_new_free_at_exit
2016-08-22drop a large amount of completely unused codemonsta1-29/+0
2016-07-12libcaja-private: drop some more unused codemonsta1-17/+0
2016-02-07fix crash when restoring file with special characters from trashmonsta1-6/+2
for example, a file named simply "%s" taken from: https://git.gnome.org/browse/nautilus/commit/?id=d69885bd67edc1fae76c790f6162807817d63b2f
2015-12-22drop source files that aren't used for yearsmonsta1-1/+0
2015-09-17use standard defines for "trash::" attributesmonsta1-2/+2
2015-01-13drop support for GLib < 2.36Monsta1-39/+21
Closes https://github.com/mate-desktop/caja/pull/372
2014-12-10zero-init all signals arraysMonsta1-1/+1
2014-12-10added checks for NULL pointer where it's neededMonsta1-1/+1
2014-10-27implementation of extension interface and status management (gsoc2014)Alexander van der Meij1-1/+3
2014-01-27Add option to show file sizes with IEC units instead of SI unitsStefano Karapetsas1-4/+16
Contains also a typo fix for the previous commit Closes #203 https://github.com/mate-desktop/caja/issues/203
2013-09-22Add check if mimetype is null before apply thumbnail frameStefano Karapetsas1-6/+7
To avoid segfaults on file deletions
2013-09-05fixed thumbnail frame not being displayed for some files. also fixes #135.romovs1-2/+11
2013-05-07Fix for #111Scott Balneaves1-5/+7
2013-04-17Possible fix for Issue #111Scott Balneaves1-0/+4
2012-11-23[all] include src/glibcompat.h & use g_list_free_full() where neededJasmine Hassan1-18/+11
Also fixes a double-free regression in lc-p/caja-query from 7a42b9b0
2012-11-16[all] use g_list_free() and g_strcmp0 instead of eel functionsJasmine Hassan1-10/+18
Was: general: use g_list_free_full() instead of eel functions http://git.gnome.org/browse/nautilus/commit/?id=5e669515fd7f760382e6b7aa1449734a35a2d7f4 . Instead of g_list_free_full(), we use g_list_foreach and g_list_free() to avoid unnecessary glib dependency bump to 2.28
2012-10-10refactor thumbnails codemate-file-manager-1.5.0Stefano Karapetsas1-6/+17
2012-09-05convert icon-view preferences to gsettingsStefano Karapetsas1-4/+5
2012-09-05convert preview settings to gsettingsStefano Karapetsas1-9/+13
2012-09-05convert show-directory-item-counts to gsettingsStefano Karapetsas1-4/+5
2012-09-05convert show-text-in-icons to gsettingsStefano Karapetsas1-4/+5
2012-09-05convert date-format to gsettingsStefano Karapetsas1-3/+3
add eel_g_settings_add_auto_enum in eel/eel-glib-extensions.c
2012-09-05start migration to gsettingsStefano Karapetsas1-27/+7
2012-08-12Fixed incorrect fsf addresses. Closes #28.Steve Zesch1-2/+2
2012-06-16add diff button for text files in file conflict dialogStefano Karapetsas1-0/+45
2012-01-04applied 15_nautilus_file_peek_crash.patch from debian nautilus 2.30.1Stefano Karapetsas1-0/+13
it solves https://bugzilla.gnome.org/show_bug.cgi?id=602500
2011-12-26fix some forgotten thingsStefano Karapetsas1-1/+1
2011-12-26ported nautilus-elementary UNDO-REDO (bzr rev 60)Stefano Karapetsas1-0/+44
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+8411