Don't use bitops on booleans.

2004-09-22  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): Don't use
	bitops on booleans.
This commit is contained in:
Matthias Clasen 2004-09-22 19:32:13 +00:00 committed by Matthias Clasen
parent ac038c3e27
commit a642c62c57
5 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): Don't use
bitops on booleans.
Wed Sep 22 00:54:34 2004 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame

View File

@ -1,3 +1,8 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): Don't use
bitops on booleans.
Wed Sep 22 00:54:34 2004 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame

View File

@ -1,3 +1,8 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): Don't use
bitops on booleans.
Wed Sep 22 00:54:34 2004 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame

View File

@ -1,3 +1,8 @@
2004-09-22 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilechooserdefault.c (selection_check_foreach_cb): Don't use
bitops on booleans.
Wed Sep 22 00:54:34 2004 Matthias Clasen <mclasen@redhat.com>
* demos/gtk-demo/pixbufs.c (do_pixbufs): Don't leak the frame

View File

@ -1913,8 +1913,8 @@ selection_check_foreach_cb (GtkTreeModel *model,
info = _gtk_file_system_model_get_info (closure->impl->browse_files_model, &child_iter);
is_folder = gtk_file_info_get_is_folder (info);
closure->all_folders &= is_folder;
closure->all_files &= !is_folder;
closure->all_folders = closure->all_folders && is_folder;
closure->all_files = closure->all_files && !is_folder;
}
/* Checks whether the selected items in the file list are all files or all folders */