Sort/search on file class
[geeqie.git] / src / menu.c
index d5a0c7a..8fc6995 100644 (file)
@@ -163,6 +163,9 @@ gchar *sort_type_get_text(SortType method)
                case SORT_RATING:
                        return _("Sort by rating");
                        break;
+               case SORT_CLASS:
+                       return _("Sort by class");
+                       break;
                case SORT_NAME:
                default:
                        return _("Sort by name");
@@ -211,6 +214,7 @@ GtkWidget *submenu_add_sort(GtkWidget *menu, GCallback func, gpointer data,
        submenu_add_sort_item(submenu, func, SORT_EXIFTIME, show_current, type);
        submenu_add_sort_item(submenu, func, SORT_SIZE, show_current, type);
        submenu_add_sort_item(submenu, func, SORT_RATING, show_current, type);
+       submenu_add_sort_item(submenu, func, SORT_CLASS, show_current, type);
        if (include_path) submenu_add_sort_item(submenu, func, SORT_PATH, show_current, type);
        if (include_none) submenu_add_sort_item(submenu, func, SORT_NONE, show_current, type);