mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:40:38 +00:00
Small patches by Andreas Höschler to NSTableView and NSComboBoxCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22861 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4bf9149f5d
commit
1b60d6206b
3 changed files with 13 additions and 7 deletions
|
@ -711,13 +711,6 @@ static GSComboWindow *gsWindow = nil;
|
|||
// no effect, to correct this fact, the code below is needed.
|
||||
[textObject setString: [_cell _stringValueAtIndex:
|
||||
[_cell indexOfSelectedItem]]];
|
||||
|
||||
/*
|
||||
* Dispatch the text notifications and by side effect update the cell
|
||||
* object value with the -textDidChange: method of NSTextField which is
|
||||
* the editor delegate
|
||||
*/
|
||||
[(NSTextView *)textObject didChangeText];
|
||||
// End of the code to remove
|
||||
|
||||
if (textObject != nil)
|
||||
|
|
|
@ -5363,6 +5363,8 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
// Otherwise, make the big cycle.
|
||||
for (i = row + 1; i < _numberOfRows; i++)
|
||||
{
|
||||
// Need to select row to be able to edit it.
|
||||
[self selectRow: i byExtendingSelection: NO];
|
||||
for (j = 0; j < _numberOfColumns; j++)
|
||||
{
|
||||
if (_isCellEditable (_delegate, _tableColumns, self, i, j) == YES)
|
||||
|
@ -5393,6 +5395,8 @@ static inline float computePeriod(NSPoint mouseLocationWin,
|
|||
// Otherwise, make the big cycle.
|
||||
for (i = row - 1; i > -1; i--)
|
||||
{
|
||||
// Need to select row to be able to edit it.
|
||||
[self selectRow: i byExtendingSelection: NO];
|
||||
for (j = _numberOfColumns - 1; j > -1; j--)
|
||||
{
|
||||
if (_isCellEditable (_delegate, _tableColumns, self, i, j) == YES)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue