summaryrefslogtreecommitdiff
path: root/src/nautilus-rename-file-popover-controller.h
Commit message (Collapse)AuthorAgeFilesLines
* rename-file-popover-controller: Make popover recyclableErnestas Kulik2018-03-291-4/+7
| | | | | | | | | | | | 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/+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
* rename-file-popover-controller: add headerCarlos Soriano2016-09-061-0/+19
|
* files-view: move file name widget logic to separate controllersRazvan Chitu2016-08-191-0/+19
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