summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-file-operations.c
AgeCommit message (Collapse)AuthorFilesLines
2022-07-20Remove trailing whitespacesrbuj1-1/+1
find . -regextype posix-extended -regex '.*\.(c|h|ac|txt|xml)' -exec sed --in-place 's/[[:space:]]\+$//' {} \+
2022-07-20Change URL prefixes from http to httpsrbuj1-1/+1
2022-07-20libcaja-private: reduce the scope of some variablesPablo Barciela1-47/+76
2022-07-19local #include files inside "" instead <>Pablo Barciela1-14/+11
2022-07-19caja-file-operations: make sure 'error' isn't NULLPablo Barciela1-2/+2
Fixes Clang static analyzer warnings: caja-file-operations.c:2165:7: warning: Access to field 'code' results in a dereference of a null pointer (loaded from variable 'error') if (error->code != G_IO_ERROR_FAILED_HANDLED) { ^~~~~~~~~~~ caja-file-operations.c:5448:14: warning: Access to field 'message' results in a dereference of a null pointer (loaded from variable 'error') details = error->message; ^~~~~~~~~~~~~~
2019-03-29eel: remove g_object_list_copyrbuj1-5/+5
GNOME/nautilus@7af24a8 Replace GList * eel_g_object_list_copy (GList *list) with g_list_copy_deep (list, (GCopyFunc) g_object_ref, NULL)
2019-03-22caja-file-operations: add comment with false positive warning:Pablo Barciela1-0/+8
False positive warning with Clang static analyzer: caja-file-operations.c:958:11: warning: Cast a region whose size is not a multiple of the destination type size common = g_malloc0 (job_size); ^~~~~~~~~~~~~~~~~~~~
2019-03-04[Security] Use 'g_strlcpy' instead of 'strcpy'Pablo Barciela1-3/+3
to avoid warnings with Clang Analyzer
2018-12-27Add independent show/hide backup filesSargastic1-0/+1
2018-06-04avoid deprecated 'gtk_window_set_wmclass'Pablo Barciela1-2/+0
2018-03-03rename mate_dialog_add_button to eel_dialog_add_buttonPablo Barciela1-22/+4
2018-02-27caja-file-operations: avoid gtk_dialog_add_buttons with stock idsPablo Barciela1-39/+71
2018-02-09avoid deprecated GtkStockPablo Barciela1-35/+35
2017-12-31eject: Do not show "safe to remove" notification if drive fails to unmountlukefromdc1-1/+4
2017-07-16avoid deprecated gdk_screen_get_numberZenWalker1-1/+2
2017-05-25added feature: present the size on disk of files as we present the size of ↵Felipe Barriga Richards1-2/+4
the file.
2017-02-07Add an option for asking confirmation before moving files to the trashColomban Wendling1-1/+62
Add an option to show a confirmation dialog when moving files to the trash, like there is for deleting files directly or emptying the trash. Closes #632.
2016-11-03suppress notification on unmounting non-ejectiable devicelukefromdc1-2/+1
Do not send "it is not safe to remove the drive" notifcation on unmount of internal drive or other non-ejectable device. Also stop incorrect notification on cancelled eject operation (as when mounted by another user and not authorized to eject).
2016-10-23Add gsettings preference to enable/disable notificationslukefromdc1-0/+2
Defaults to TRUE
2016-10-23libunique builds: enable eject notificationslukefromdc1-8/+6
We no longer need to use any GtkApplication features for this so enable it in libunique builds too. Tested with and without libunique in GTK 3.22
2016-10-23Refactor notification code to remove duplicate functionlukefromdc1-3/+3
The desktop icon eject code required a function in libcaja-private so we no longer need it in caja-application.c
2016-10-23GtkApplication: show notifications for ejecting from the desktop toolukefromdc1-2/+36
Show desktop notifications for ejecting a drive from the desktop as well.The code in caja-file-operations won't show notifications from the sidebar so that code is still needed too.
2016-10-17Fix disabled controls when recursively processing directoriesemanuele-f1-23/+26
2016-10-17Operations window fixes and control improvementsemanuele-f1-19/+63
2016-10-17Start immediately some opsemanuele-f1-7/+7
2016-10-17Anticipate progress window creation to provide immediate op startemanuele-f1-10/+10
2016-10-17operations can now specify to start immediatelyemanuele-f1-24/+24
2016-10-17extend to all the operationsemanuele-f1-0/+14
2016-10-17thread synchronization to implement pause resumeemanuele-f1-0/+1
2016-07-11all: don't use deprecated GMutex/GThread APIraveit651-7/+6
Also, threads area always enabled, so we can remove the G_THREADS_ENABLED conditionals. Require GLib 2.31 for this. taken from: https://git.gnome.org/browse/nautilus/commit/?h=gnome-3-4&id=0594aa1 Note, this fixes a Wimplicit-function-declaration warning in caja-search-engine-simple
2015-01-13drop support for GLib < 2.36Monsta1-10/+4
Closes https://github.com/mate-desktop/caja/pull/372
2014-12-10added checks for NULL pointer where it's neededMonsta1-1/+1
2014-09-30libcaja-private: fix always-false expressionsBoris Egorov1-6/+0
CppCheck detected a few 'always false' expressions in caja. First two definitely appeareed due to copy-paste (mime-types comparison). It would be nice to move x_content_type's and corresponding greetings to some table (array of structs), wouldn't it? The last one looks like copy-paste problem too. There were two identical blocks of code in move_file_prepare() checking conflict type. BTW, there is exactly the same code in the same file inside copy_move_file(). According to DRY, it would be nice to move this code to its own function.
2014-01-27Add option to show file sizes with IEC units instead of SI unitsStefano Karapetsas1-1/+4
Contains also a typo fix for the previous commit Closes #203 https://github.com/mate-desktop/caja/issues/203
2013-03-03Replace undocumented deprecated g_thread_gettimeStefano Karapetsas1-2/+2
Bump minimum glib version accordingly
2012-12-22[all] silence warnings from GCC 4.6Jasmine Hassan1-8/+1
GCC 4.6 introduced a new warning about variables declared and initialized, but not really used in the function body. Remove all of these occurrences to build cleanly. http://git.gnome.org/browse/nautilus/commit/?id=d4230de8667764e02dbb966b5d806ff78ced2fd5
2012-11-23[all] include src/glibcompat.h & use g_list_free_full() where neededJasmine Hassan1-16/+10
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-8/+16
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-11-16[all] use GtkMessageDialog instead of EelAlertDialog (going away)Jasmine Hassan1-10/+13
This covers 4 commits: file-operations: use GtkMessageDialog http://git.gnome.org/browse/nautilus/commit/?id=51ec5861ca0697e802e8c003053211ac12f2fd54 mime-actions: use GtkMessageDialog http://git.gnome.org/browse/nautilus/commit/?id=7a3dcdd4bf667aac271be74988770e18575a7df2 tree-view: don't include eel-alert-dialog.h http://git.gnome.org/browse/nautilus/commit/?id=930af7f3058eed256a42c0c1558c7307bb93f411 [eel] use GtkMessageDialog for stock dialogs http://git.gnome.org/browse/nautilus/commit/?id=82c5b6c0d82ebd8a705d542fcc9aa58e6e9b0da4
2012-11-14[lc-p|eel-gtk-extensions] Don't include eel-pango-extensions.hJasmine Hassan1-1/+0
http://git.gnome.org/browse/nautilus/commit/?id=f080b86daeb571def4c092e1524e9adfc7700699
2012-09-05start migration to gsettingsStefano Karapetsas1-20/+16
2012-08-12Fixed incorrect fsf addresses. Closes #28.Steve Zesch1-2/+2
2011-12-26ported nautilus-elementary UNDO-REDO (bzr rev 60)Stefano Karapetsas1-0/+137
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+6469