diff options
author | utkarshvg2401 <utkarshvg2401@gmail.com> | 2022-07-18 21:23:11 +0530 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-09-10 12:31:23 +0100 |
commit | be047e67dd7e2709b28e44fcaad2d24193eec16f (patch) | |
tree | 644bdf14a30c6f82384ad36d5471644f7e57893e /src/nautilus-templates-dialog.h | |
parent | 216d5c2dddda8c2a0182b6110a11214875d948ab (diff) | |
download | nautilus-be047e67dd7e2709b28e44fcaad2d24193eec16f.tar.gz |
templates-dialog: Changes for the dialog box method
The current implementation of the “New Documents” submenu is a GtkPopoverMenu. It uses the GMenuModel, which is added as submenus in the right-click popover menu.
This implementation has many long-standing issues, as mentioned here https://gitlab.gnome.org/GNOME/nautilus/-/issues/2205, so we plan to move away from it by using a dialog box for creating new templates.
The dialog box makes it possible to view the whole list of templates in a single view, gives users the ability to search for templates, and makes it easier for everyone to use the template creation feature!
Diffstat (limited to 'src/nautilus-templates-dialog.h')
-rw-r--r-- | src/nautilus-templates-dialog.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-templates-dialog.h b/src/nautilus-templates-dialog.h index a95857ad4..a0c34ecc5 100644 --- a/src/nautilus-templates-dialog.h +++ b/src/nautilus-templates-dialog.h @@ -21,6 +21,7 @@ #pragma once #include <adwaita.h> +#include "nautilus-types.h" G_BEGIN_DECLS @@ -30,4 +31,6 @@ G_DECLARE_FINAL_TYPE (NautilusTemplatesDialog, nautilus_templates_dialog, NAUTIL NautilusTemplatesDialog * nautilus_templates_dialog_new (GtkWindow *parent_window); +NautilusFile * nautilus_templates_dialog_get_selected_file (NautilusTemplatesDialog *self); + G_END_DECLS |