diff options
author | Ernestas Kulik <ernestask@gnome.org> | 2018-03-15 21:28:54 +0200 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2018-03-29 14:01:12 +0300 |
commit | f441aec32faebe7ad62d44fd04ebd3af2a367f9a (patch) | |
tree | e50a567dd967bca256772543af68b7463ecb8ea2 /src/nautilus-rename-file-popover-controller.h | |
parent | 65a116f14892535bce372425346e329446c7f68e (diff) | |
download | nautilus-f441aec32faebe7ad62d44fd04ebd3af2a367f9a.tar.gz |
rename-file-popover-controller: Make popover recyclable
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
Diffstat (limited to 'src/nautilus-rename-file-popover-controller.h')
-rw-r--r-- | src/nautilus-rename-file-popover-controller.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nautilus-rename-file-popover-controller.h b/src/nautilus-rename-file-popover-controller.h index 3b55ffdb7..c4627bce5 100644 --- a/src/nautilus-rename-file-popover-controller.h +++ b/src/nautilus-rename-file-popover-controller.h @@ -28,8 +28,11 @@ #define NAUTILUS_TYPE_RENAME_FILE_POPOVER_CONTROLLER nautilus_rename_file_popover_controller_get_type () G_DECLARE_FINAL_TYPE (NautilusRenameFilePopoverController, nautilus_rename_file_popover_controller, NAUTILUS, RENAME_FILE_POPOVER_CONTROLLER, NautilusFileNameWidgetController) -NautilusRenameFilePopoverController * nautilus_rename_file_popover_controller_new (NautilusFile *target_file, - GdkRectangle *pointing_to, - GtkWidget *relative_to); +NautilusRenameFilePopoverController * nautilus_rename_file_popover_controller_new (void); -NautilusFile * nautilus_rename_file_popover_controller_get_target_file (NautilusRenameFilePopoverController *controller);
\ No newline at end of file +NautilusFile * nautilus_rename_file_popover_controller_get_target_file (NautilusRenameFilePopoverController *controller); + +void nautilus_rename_file_popover_controller_show_for_file (NautilusRenameFilePopoverController *controller, + NautilusFile *target_file, + GdkRectangle *pointing_to, + GtkWidget *relative_to); |