summaryrefslogtreecommitdiff
path: root/src/nautilus-file-name-widget-controller.h
Commit message (Collapse)AuthorAgeFilesLines
* file-name-widget: Warn when name exceeds size limitAntónio Fernandes2018-08-021-0/+2
| | | | | | | | | An warning for names exceeding the size limit has been introduced in 122f201dcf356460a30a7b260730bcfc7246a614 for the rename popover. This would be useful for the compress and new folder dialogs as well. So, make all file name widget derivatives share this feature.
* rename-file-popover-controller: Make popover recyclableErnestas Kulik2018-03-291-0/+3
| | | | | | | | | | | | Creating and destroying the controller each time we want to rename something results in not being able to pop down the popover, which leads to an inconsistent look. The “containing-directory” in the file name widget controller parent class needed to be made non-construct-only, as otherwise it would be impossible to reuse the same controller. Fixes https://gitlab.gnome.org/GNOME/nautilus/issues/260
* general: Remove include guards in favor of pragma onceAlexandru Fazakas2018-03-191-5/+1
| | | | | | | | | | | | | | | | | | 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
* file-name-widget-controller: add headerCarlos Soriano2016-09-061-0/+19
| | | | Copyright and licence were missing
* files-view: move file name widget logic to separate controllersRazvan Chitu2016-08-191-0/+32
The rename file popover and the new folder dialog share common logic for validating file names entered by the user. The control logic was implemented with a simple structure in files-view. Besides common logic, the structure also held parameters specific to only one of the operations. Another problem is that the current implementation does not allow flexibility in obtaining the file name from the widgets and displaying error messages. In order to fix this, reimplement the structure as an abstract class and create two subclasses for the "Rename" and "New Folder" widgets. https://bugzilla.gnome.org/show_bug.cgi?id=769336