1
1

MC Viewer API unification: arguments order was changed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2010-01-01 15:43:25 +03:00
родитель 1055b85072
Коммит 8d70916abd
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -187,7 +187,7 @@ mcview_set_keymap (mcview_t * view)
/* --------------------------------------------------------------------------------------------- */
mcview_t *
mcview_new (int y, int x, int cols, int lines, int is_panel)
mcview_new (int y, int x, int lines, int cols, int is_panel)
{
mcview_t *view = g_new0 (mcview_t, 1);
size_t i;
@ -270,7 +270,7 @@ mcview_viewer (const char *command, const char *file, int *move_dir_p, int start
view_dlg = create_dlg (0, 0, LINES, COLS, NULL, mcview_dialog_callback,
"[Internal File Viewer]", NULL, DLG_WANT_TAB);
lc_mcview = mcview_new (0, 0, COLS, LINES - 1, 0);
lc_mcview = mcview_new (0, 0, LINES - 1, COLS, 0);
add_widget (view_dlg, lc_mcview);
add_widget (view_dlg, buttonbar_new (TRUE));

Просмотреть файл

@ -34,7 +34,7 @@ extern int mcview_mouse_move_pages;
/* Creates a new mcview_t object with the given properties. Caveat: the
* origin is in y-x order, while the extent is in x-y order. */
extern struct mcview_struct *mcview_new (int, int, int, int, int);
extern struct mcview_struct *mcview_new (int y, int x, int lines, int cols, int is_panel);
/* Shows {file} or the output of {command} in the internal viewer,