diff src/view_file.c @ 1635:5ad450d67878

added mark filter to menu - now it is possible to assign hotkeys
author nadvornik
date Sat, 06 Jun 2009 22:51:55 +0000
parents 2a96ff43ab3e
children 58a5d1e01e33
line wrap: on
line diff
--- a/src/view_file.c	Sat Jun 06 19:39:46 2009 +0000
+++ b/src/view_file.c	Sat Jun 06 22:51:55 2009 +0000
@@ -711,6 +711,13 @@
 	return frame;
 }
 
+void vf_mark_filter_toggle(ViewFile *vf, gint mark)
+{
+	gint n = mark - 1;
+	gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(vf->filter_check[n]),
+				     !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(vf->filter_check[n])));
+}
+
 ViewFile *vf_new(FileViewType type, FileData *dir_fd)
 {
 	ViewFile *vf;