555 |
{ |
{ |
556 |
if ((buffer == ptr_win->buffer) && |
if ((buffer == ptr_win->buffer) && |
557 |
((buffer->next_buffer) || (buffer->prev_buffer))) |
((buffer->next_buffer) || (buffer->prev_buffer))) |
558 |
gui_switch_to_previous_buffer (ptr_win); |
gui_buffer_switch_previous (ptr_win); |
559 |
} |
} |
560 |
} |
} |
561 |
|
|
1299 |
} |
} |
1300 |
|
|
1301 |
/* |
/* |
1302 |
* gui_switch_to_previous_buffer: switch to previous buffer |
* gui_buffer_switch_previous: switch to previous buffer |
1303 |
*/ |
*/ |
1304 |
|
|
1305 |
void |
void |
1306 |
gui_switch_to_previous_buffer (t_gui_window *window) |
gui_buffer_switch_previous (t_gui_window *window) |
1307 |
{ |
{ |
1308 |
if (!gui_ok) |
if (!gui_ok) |
1309 |
return; |
return; |
1321 |
} |
} |
1322 |
|
|
1323 |
/* |
/* |
1324 |
* gui_switch_to_next_buffer: switch to next buffer |
* gui_buffer_switch_next: switch to next buffer |
1325 |
*/ |
*/ |
1326 |
|
|
1327 |
void |
void |
1328 |
gui_switch_to_next_buffer (t_gui_window *window) |
gui_buffer_switch_next (t_gui_window *window) |
1329 |
{ |
{ |
1330 |
if (!gui_ok) |
if (!gui_ok) |
1331 |
return; |
return; |
1343 |
} |
} |
1344 |
|
|
1345 |
/* |
/* |
1346 |
* gui_switch_to_previous_window: switch to previous window |
* gui_window_switch_previous: switch to previous window |
1347 |
*/ |
*/ |
1348 |
|
|
1349 |
void |
void |
1350 |
gui_switch_to_previous_window (t_gui_window *window) |
gui_window_switch_previous (t_gui_window *window) |
1351 |
{ |
{ |
1352 |
if (!gui_ok) |
if (!gui_ok) |
1353 |
return; |
return; |
1362 |
} |
} |
1363 |
|
|
1364 |
/* |
/* |
1365 |
* gui_switch_to_next_window: switch to next window |
* gui_window_switch_next: switch to next window |
1366 |
*/ |
*/ |
1367 |
|
|
1368 |
void |
void |
1369 |
gui_switch_to_next_window (t_gui_window *window) |
gui_window_switch_next (t_gui_window *window) |
1370 |
{ |
{ |
1371 |
if (!gui_ok) |
if (!gui_ok) |
1372 |
return; |
return; |
1381 |
} |
} |
1382 |
|
|
1383 |
/* |
/* |
1384 |
* gui_switch_to_window_by_buffer: switch to next window displaying a buffer |
* gui_window_switch_by_buffer: switch to next window displaying a buffer |
1385 |
*/ |
*/ |
1386 |
|
|
1387 |
void |
void |
1388 |
gui_switch_to_window_by_buffer (t_gui_window *window, int buffer_number) |
gui_window_switch_by_buffer (t_gui_window *window, int buffer_number) |
1389 |
{ |
{ |
1390 |
t_gui_window *ptr_win; |
t_gui_window *ptr_win; |
1391 |
|
|
1407 |
} |
} |
1408 |
|
|
1409 |
/* |
/* |
1410 |
* gui_switch_to_dcc_buffer: switch to dcc buffer (create it if it does not exist) |
* gui_buffer_switch_dcc: switch to dcc buffer (create it if it does not exist) |
1411 |
*/ |
*/ |
1412 |
|
|
1413 |
void |
void |
1414 |
gui_switch_to_dcc_buffer (t_gui_window *window) |
gui_buffer_switch_dcc (t_gui_window *window) |
1415 |
{ |
{ |
1416 |
t_gui_buffer *ptr_buffer; |
t_gui_buffer *ptr_buffer; |
1417 |
|
|
1431 |
} |
} |
1432 |
|
|
1433 |
/* |
/* |
1434 |
* gui_switch_to_buffer_by_number: switch to another buffer with number |
* gui_buffer_switch_by_number: switch to another buffer with number |
1435 |
*/ |
*/ |
1436 |
|
|
1437 |
t_gui_buffer * |
t_gui_buffer * |
1438 |
gui_switch_to_buffer_by_number (t_gui_window *window, int number) |
gui_buffer_switch_by_number (t_gui_window *window, int number) |
1439 |
{ |
{ |
1440 |
t_gui_buffer *ptr_buffer; |
t_gui_buffer *ptr_buffer; |
1441 |
|
|
1463 |
} |
} |
1464 |
|
|
1465 |
/* |
/* |
1466 |
* gui_switch_to_buffer_by_number: switch to another buffer with number |
* gui_buffer_move_to_number: move a buffer to another number |
1467 |
*/ |
*/ |
1468 |
|
|
1469 |
void |
void |
1470 |
gui_move_buffer_to_number (t_gui_window *window, int number) |
gui_buffer_move_to_number (t_gui_window *window, int number) |
1471 |
{ |
{ |
1472 |
t_gui_buffer *ptr_buffer; |
t_gui_buffer *ptr_buffer; |
1473 |
int i; |
int i; |