Mercurial > geeqie
comparison src/view_dir_list.c @ 356:673d1eb5af73
Rename show_dot_files to show_hidden_files.
There is no need to expose the underlying method to hide
files.
author | zas_ |
---|---|
date | Sun, 13 Apr 2008 19:21:13 +0000 |
parents | 0b82646e977f |
children | 61a3c8b05b24 |
comparison
equal
deleted
inserted
replaced
355:0b82646e977f | 356:673d1eb5af73 |
---|---|
369 ViewDirList *vdl = data; | 369 ViewDirList *vdl = data; |
370 | 370 |
371 if (vdl->layout) layout_refresh(vdl->layout); | 371 if (vdl->layout) layout_refresh(vdl->layout); |
372 } | 372 } |
373 | 373 |
374 static void vdlist_toggle_show_dot_files_cb(GtkWidget *widget, gpointer data) | 374 static void vdlist_toggle_show_hidden_files_cb(GtkWidget *widget, gpointer data) |
375 { | 375 { |
376 ViewDirList *vdl = data; | 376 ViewDirList *vdl = data; |
377 | 377 |
378 options->file_filter.show_dot_files = !options->file_filter.show_dot_files; | 378 options->file_filter.show_hidden_files = !options->file_filter.show_hidden_files; |
379 if (vdl->layout) layout_refresh(vdl->layout); | 379 if (vdl->layout) layout_refresh(vdl->layout); |
380 } | 380 } |
381 | 381 |
382 static GtkWidget *vdlist_pop_menu(ViewDirList *vdl, FileData *fd) | 382 static GtkWidget *vdlist_pop_menu(ViewDirList *vdl, FileData *fd) |
383 { | 383 { |
424 G_CALLBACK(vdlist_pop_menu_delete_cb), vdl); | 424 G_CALLBACK(vdlist_pop_menu_delete_cb), vdl); |
425 | 425 |
426 menu_item_add_divider(menu); | 426 menu_item_add_divider(menu); |
427 menu_item_add_check(menu, _("View as _tree"), FALSE, | 427 menu_item_add_check(menu, _("View as _tree"), FALSE, |
428 G_CALLBACK(vdlist_pop_menu_tree_cb), vdl); | 428 G_CALLBACK(vdlist_pop_menu_tree_cb), vdl); |
429 menu_item_add_check(menu, _("Show _hidden files"), options->file_filter.show_dot_files, | 429 menu_item_add_check(menu, _("Show _hidden files"), options->file_filter.show_hidden_files, |
430 G_CALLBACK(vdlist_toggle_show_dot_files_cb), vdl); | 430 G_CALLBACK(vdlist_toggle_show_hidden_files_cb), vdl); |
431 | 431 |
432 menu_item_add_stock(menu, _("Re_fresh"), GTK_STOCK_REFRESH, | 432 menu_item_add_stock(menu, _("Re_fresh"), GTK_STOCK_REFRESH, |
433 G_CALLBACK(vdlist_pop_menu_refresh_cb), vdl); | 433 G_CALLBACK(vdlist_pop_menu_refresh_cb), vdl); |
434 | 434 |
435 return menu; | 435 return menu; |