Mercurial > geeqie
diff src/layout_util.c @ 1598:c03a8e19a43a
expose the file grouping flag to the user
author | nadvornik |
---|---|
date | Sat, 09 May 2009 19:45:24 +0000 |
parents | de111f20d4ae |
children | d66324d91bae |
line wrap: on
line diff
--- a/src/layout_util.c Sat May 09 19:25:51 2009 +0000 +++ b/src/layout_util.c Sat May 09 19:45:24 2009 +0000 @@ -301,6 +301,20 @@ file_util_delete(NULL, layout_selection_list(lw), layout_window(lw)); } +static void layout_menu_disable_grouping_cb(GtkAction *action, gpointer data) +{ + LayoutWindow *lw = data; + + file_data_disable_grouping_list(layout_selection_list(lw), TRUE); +} + +static void layout_menu_enable_grouping_cb(GtkAction *action, gpointer data) +{ + LayoutWindow *lw = data; + + file_data_disable_grouping_list(layout_selection_list(lw), FALSE); +} + static void layout_menu_close_cb(GtkAction *action, gpointer data) { LayoutWindow *lw = data; @@ -1236,6 +1250,8 @@ { "Delete", GTK_STOCK_DELETE, N_("_Delete..."), "<control>D", N_("Delete..."), CB(layout_menu_delete_cb) }, { "DeleteAlt1", GTK_STOCK_DELETE, N_("_Delete..."), "Delete", N_("Delete..."), CB(layout_menu_delete_cb) }, { "DeleteAlt2", GTK_STOCK_DELETE, N_("_Delete..."), "KP_Delete", N_("Delete..."), CB(layout_menu_delete_cb) }, + { "EnableGrouping", NULL, N_("Enable file _grouping"), NULL, N_("Enable file grouping"), CB(layout_menu_enable_grouping_cb) }, + { "DisableGrouping", NULL, N_("Disable file groupi_ng"), NULL, N_("Disable file grouping"), CB(layout_menu_disable_grouping_cb) }, { "CopyPath", NULL, N_("_Copy path to clipboard"), NULL, N_("Copy path to clipboard"), CB(layout_menu_copy_path_cb) }, { "CloseWindow", GTK_STOCK_CLOSE, N_("C_lose window"), "<control>W", N_("Close window"), CB(layout_menu_close_cb) }, { "Quit", GTK_STOCK_QUIT, N_("_Quit"), "<control>Q", N_("Quit"), CB(layout_menu_exit_cb) },