projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version update, docs Features5 msg/txt, shuttle tweaks for build
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
bclistbox.C
diff --git
a/cinelerra-5.1/guicast/bclistbox.C
b/cinelerra-5.1/guicast/bclistbox.C
index e99d7316f3d0a126e1f817c58976e00ee7cf8016..ef29b0b6eac0dc8848673528f1333ec4d590a1fc 100644
(file)
--- a/
cinelerra-5.1/guicast/bclistbox.C
+++ b/
cinelerra-5.1/guicast/bclistbox.C
@@
-1223,7
+1223,7
@@
int BC_ListBox::get_text_mask(BC_ListBoxItem *item,
h = get_text_h(item) + ICON_MARGIN * 2;
break; }
case LISTBOX_ICON_LIST: {
h = get_text_h(item) + ICON_MARGIN * 2;
break; }
case LISTBOX_ICON_LIST: {
- w =
get_text_width(MEDIUMFONT, item->text) + LISTBOX_MARGIN * 2
;
+ w =
column_width ? column_width[0] : default_column_width[0]
;
h = row_height;
break; }
default:
h = row_height;
break; }
default:
@@
-2615,7
+2615,7
@@
int BC_ListBox::button_press_event()
// Multiple item selection is possible
if( selection_mode == LISTBOX_MULTIPLE &&
// Multiple item selection is possible
if( selection_mode == LISTBOX_MULTIPLE &&
- (ctrl_down() || shift_down()) ) {
+ (ctrl_down() || shift_down()
|| current_item->selected
) ) {
// Expand text selection.
// Fill items between selected region and current item.
if( shift_down() &&
// Expand text selection.
// Fill items between selected region and current item.
if( shift_down() &&
@@
-2639,7
+2639,7
@@
int BC_ListBox::button_press_event()
new_value = 1;
}
// Toggle a single item on or off
new_value = 1;
}
// Toggle a single item on or off
- else {
+ else
if( ctrl_down() )
{
toggle_item_selection(data, selection_number);
new_value = current_item->selected;
}
toggle_item_selection(data, selection_number);
new_value = current_item->selected;
}