mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 21:20:09 +00:00
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:
parent
ac038c3e27
commit
a642c62c57
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user