X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fguicast%2Fbcfilebox.C;h=8ffafb8169990717fac71831c4cd1457f9fba3a1;hb=8d1277ccc789cf008150742da9fe66b21183541c;hp=22afff8eda58fb5f295b0a92cb983799d28fa9b4;hpb=418e8644335db47143bc421f11be2c2e68901d45;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcfilebox.C b/cinelerra-5.1/guicast/bcfilebox.C index 22afff8e..8ffafb81 100644 --- a/cinelerra-5.1/guicast/bcfilebox.C +++ b/cinelerra-5.1/guicast/bcfilebox.C @@ -254,7 +254,8 @@ int BC_FileBoxFilterMenu::handle_event() BC_FileBoxSizeFormat::BC_FileBoxSizeFormat(int x, int y, BC_FileBox *file_box) - : BC_Button(x, y, BC_WindowBase::get_resources()->filebox_szfmt_images) + : BC_Button(x, y, &BC_WindowBase::get_resources()-> + filebox_szfmt_images[3*file_box->size_format]) { this->file_box = file_box; set_tooltip(_("Size numeric format")); @@ -268,6 +269,9 @@ int BC_FileBoxSizeFormat::handle_event() if( ++file_box->size_format > FILEBOX_SIZE_THOU ) file_box->size_format = FILEBOX_SIZE_RAW; BC_WindowBase::get_resources()->filebox_size_format = file_box->size_format; + set_images(&BC_WindowBase::get_resources()-> + filebox_szfmt_images[3*file_box->size_format]); + draw_face(0); file_box->refresh(0); return 1; } @@ -557,10 +561,11 @@ void BC_FileBox::create_objects() if(!want_directory) { filter_list.append(new BC_ListBoxItem("*")); - filter_list.append(new BC_ListBoxItem("[*.mkv]")); + filter_list.append(new BC_ListBoxItem("[*.mkv][*.webm]")); filter_list.append(new BC_ListBoxItem("[*.mp4]")); filter_list.append(new BC_ListBoxItem("[*.mp2][*.mp3][*.wav]")); filter_list.append(new BC_ListBoxItem("[*.avi][*.mpg][*.m2v][*.m1v][*.mov]")); + filter_list.append(new BC_ListBoxItem("[*.jpg][*.png][*.gif][*.tiff]")); filter_list.append(new BC_ListBoxItem("*.xml")); fs->set_filter(get_resources()->filebox_filter); }