Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
1597:e02bf864fcdc | 1598:c03a8e19a43a |
---|---|
299 LayoutWindow *lw = data; | 299 LayoutWindow *lw = data; |
300 | 300 |
301 file_util_delete(NULL, layout_selection_list(lw), layout_window(lw)); | 301 file_util_delete(NULL, layout_selection_list(lw), layout_window(lw)); |
302 } | 302 } |
303 | 303 |
304 static void layout_menu_disable_grouping_cb(GtkAction *action, gpointer data) | |
305 { | |
306 LayoutWindow *lw = data; | |
307 | |
308 file_data_disable_grouping_list(layout_selection_list(lw), TRUE); | |
309 } | |
310 | |
311 static void layout_menu_enable_grouping_cb(GtkAction *action, gpointer data) | |
312 { | |
313 LayoutWindow *lw = data; | |
314 | |
315 file_data_disable_grouping_list(layout_selection_list(lw), FALSE); | |
316 } | |
317 | |
304 static void layout_menu_close_cb(GtkAction *action, gpointer data) | 318 static void layout_menu_close_cb(GtkAction *action, gpointer data) |
305 { | 319 { |
306 LayoutWindow *lw = data; | 320 LayoutWindow *lw = data; |
307 | 321 |
308 layout_exit_fullscreen(lw); | 322 layout_exit_fullscreen(lw); |
1234 { "Move", NULL, N_("_Move..."), "<control>M", N_("Move..."), CB(layout_menu_move_cb) }, | 1248 { "Move", NULL, N_("_Move..."), "<control>M", N_("Move..."), CB(layout_menu_move_cb) }, |
1235 { "Rename", NULL, N_("_Rename..."), "<control>R", N_("Rename..."), CB(layout_menu_rename_cb) }, | 1249 { "Rename", NULL, N_("_Rename..."), "<control>R", N_("Rename..."), CB(layout_menu_rename_cb) }, |
1236 { "Delete", GTK_STOCK_DELETE, N_("_Delete..."), "<control>D", N_("Delete..."), CB(layout_menu_delete_cb) }, | 1250 { "Delete", GTK_STOCK_DELETE, N_("_Delete..."), "<control>D", N_("Delete..."), CB(layout_menu_delete_cb) }, |
1237 { "DeleteAlt1", GTK_STOCK_DELETE, N_("_Delete..."), "Delete", N_("Delete..."), CB(layout_menu_delete_cb) }, | 1251 { "DeleteAlt1", GTK_STOCK_DELETE, N_("_Delete..."), "Delete", N_("Delete..."), CB(layout_menu_delete_cb) }, |
1238 { "DeleteAlt2", GTK_STOCK_DELETE, N_("_Delete..."), "KP_Delete", N_("Delete..."), CB(layout_menu_delete_cb) }, | 1252 { "DeleteAlt2", GTK_STOCK_DELETE, N_("_Delete..."), "KP_Delete", N_("Delete..."), CB(layout_menu_delete_cb) }, |
1253 { "EnableGrouping", NULL, N_("Enable file _grouping"), NULL, N_("Enable file grouping"), CB(layout_menu_enable_grouping_cb) }, | |
1254 { "DisableGrouping", NULL, N_("Disable file groupi_ng"), NULL, N_("Disable file grouping"), CB(layout_menu_disable_grouping_cb) }, | |
1239 { "CopyPath", NULL, N_("_Copy path to clipboard"), NULL, N_("Copy path to clipboard"), CB(layout_menu_copy_path_cb) }, | 1255 { "CopyPath", NULL, N_("_Copy path to clipboard"), NULL, N_("Copy path to clipboard"), CB(layout_menu_copy_path_cb) }, |
1240 { "CloseWindow", GTK_STOCK_CLOSE, N_("C_lose window"), "<control>W", N_("Close window"), CB(layout_menu_close_cb) }, | 1256 { "CloseWindow", GTK_STOCK_CLOSE, N_("C_lose window"), "<control>W", N_("Close window"), CB(layout_menu_close_cb) }, |
1241 { "Quit", GTK_STOCK_QUIT, N_("_Quit"), "<control>Q", N_("Quit"), CB(layout_menu_exit_cb) }, | 1257 { "Quit", GTK_STOCK_QUIT, N_("_Quit"), "<control>Q", N_("Quit"), CB(layout_menu_exit_cb) }, |
1242 { "RotateCW", NULL, N_("_Rotate clockwise"), "bracketright", N_("Rotate clockwise"), CB(layout_menu_alter_90_cb) }, | 1258 { "RotateCW", NULL, N_("_Rotate clockwise"), "bracketright", N_("Rotate clockwise"), CB(layout_menu_alter_90_cb) }, |
1243 { "RotateCCW", NULL, N_("Rotate _counterclockwise"), "bracketleft", N_("Rotate counterclockwise"), CB(layout_menu_alter_90cc_cb) }, | 1259 { "RotateCCW", NULL, N_("Rotate _counterclockwise"), "bracketleft", N_("Rotate counterclockwise"), CB(layout_menu_alter_90cc_cb) }, |