summaryrefslogtreecommitdiff
path: root/eel/eel-string.h
Commit message (Collapse)AuthorAgeFilesLines
* file: replace eel_ref_str with GRefStringJordan Petridis2019-02-221-9/+0
| | | | | | | | | | | | | | | | | glib now offers a reference counted api. This allows us to replace a lot of legacy code and get rid of eel_ref_str. GRefString [1] is almost a drop-in replacement. nautilus-file-operations.c was indirectly depending upon eel/eel-string.h from nautilus-file-private.h and thus a new include was added. This bumps the minimum version of glib to 2.58 Close #781 https://gitlab.gnome.org/GNOME/nautilus/issues/781 [1] https://developer.gnome.org/glib/stable/glib-Reference-counted-strings.html
* general: Remove include guards in favor of pragma onceAlexandru Fazakas2018-03-191-5/+2
| | | | | | | | | | | | | | | | | | The traditional include guards are not as easy to handle and require extra thought into the names. Pragma once is an easier, more contributor friendly approach. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294 general: Remove include guards in favor of pragma once The traditional include guards are not as easy to handle and require extra thought into the names. Pragma once is an easier, more contributor friendly approach. Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294
* eel: string: remove custom strdup_printf functionsErnestas Kulik2018-03-051-14/+0
| | | | | These aren’t used anywhere and cause Clang to spit out errors about format strings not being literals.
* eel: string: refactor middle truncationErnestas Kulik2018-02-271-5/+16
| | | | | | | This commit tries to make the function more readable and fixes the allocation of the new string: the truncated string is of the same size as the source string. This can be fixed by adding a couple of different allocations. :) Some comments were trimmed down or removed.
* file-utilities: rework common prefix computationErnestas Kulik2017-12-231-8/+0
| | | | | | | | | | | | | | | | | Currently, the process for getting the common prefix of a list of file names is a tad too greedy: 1. Find the common prefix of all the strings. 2. Strip the extension from the prefix. 3. Strip trailing punctuation. Step 2 may strip dots if there’s trailing whitespace and step 3 may strip useful punctuation (e.g. parentheses). This commit reworks the process as such: 1. Strip the extension from all the file names. 2. Find the common prefix of all the strings. 3. Trim trailing whitespace. Fixes #174.
* files-view: change "New Folder /w Selection" to offer a nameNeil Herald2016-07-101-0/+18
| | | | | | | | | | | | | New Folder with Selection currently doesn't offer a folder name. It would be better if it suggested a folder name based on the files that are selected. With this change, it now looks for a common filename prefix of the selected files, and pre-populates the folder name entry with that. If no common prefix is found that is greater than 3 characters long, the folder name entry will be left blank. https://bugzilla.gnome.org/show_bug.cgi?id=747907
* general: remove vim modelinesCarlos Soriano2016-04-041-2/+1
| | | | | | | | | | | | | Vim and emacs modelines are used to specify some of the code style in the code. However, this is misleading and poorly supported since nautilus had a mix of code style for some time. Also, the mode lines doesn't specify the whole code style, so we will need to use a different tool as well to specify the whole code style. For that, we can just use a different tool for everything. So remove the mode lines, and in a short future we will reestyle the nautilus code to have a single code style, and use a tool like editorconfig to specify the whole code style.
* Updated FSF's addressDaniel Mustieles2014-01-311-2/+1
|
* eel: remove unused codeCosimo Cecchi2012-04-111-7/+0
| | | | All these functions are now unused and can be removed.
* eel-string: remove unused codeCosimo Cecchi2011-10-051-27/+0
|
* eel/ Import eel into nautilus.Alexander Larsson2008-12-151-0/+120
2008-12-15 Alexander Larsson <alexl@redhat.com> * Makefile.am: * acconfig.h: * configure.in: * eel/ * libnautilus-private/Makefile.am: Import eel into nautilus. svn path=/trunk/; revision=14815