location-banner: sort cases alphabetically

This commit is contained in:
Peter Eisenmann 2023-01-21 14:13:47 +01:00 committed by António Fernandes
parent 4a5d128a8b
commit 6e07531f7b
2 changed files with 9 additions and 9 deletions

View file

@ -105,14 +105,6 @@ nautilus_location_banner_load (AdwBanner *banner,
switch (location)
{
case NAUTILUS_SPECIAL_LOCATION_TEMPLATES:
{
adw_banner_set_title (banner, _("Put files in this folder to use them as templates for new documents."));
button_label = _("_Learn More");
callback = G_CALLBACK (on_template_clicked);
}
break;
case NAUTILUS_SPECIAL_LOCATION_SCRIPTS:
{
adw_banner_set_title (banner, _("Executable files in this folder will appear in the Scripts menu."));
@ -127,6 +119,14 @@ nautilus_location_banner_load (AdwBanner *banner,
}
break;
case NAUTILUS_SPECIAL_LOCATION_TEMPLATES:
{
adw_banner_set_title (banner, _("Put files in this folder to use them as templates for new documents."));
button_label = _("_Learn More");
callback = G_CALLBACK (on_template_clicked);
}
break;
case NAUTILUS_SPECIAL_LOCATION_TRASH:
{
set_auto_emptied_message (banner);

View file

@ -25,9 +25,9 @@
G_BEGIN_DECLS
typedef enum {
NAUTILUS_SPECIAL_LOCATION_TEMPLATES,
NAUTILUS_SPECIAL_LOCATION_SCRIPTS,
NAUTILUS_SPECIAL_LOCATION_SHARING,
NAUTILUS_SPECIAL_LOCATION_TEMPLATES,
NAUTILUS_SPECIAL_LOCATION_TRASH,
} NautilusSpecialLocation;