Pavel Roskin
7b3b03f9db
* glibcompat.c: Move Q_ back ...
...
* util.c: ... here. Q_ is not defined by just including glib.h.
The glib implementation doesn't strip prefix from translations,
so it's not suitable for us. Finally, it makes man2hlp depend
on libintl.
Reported by Leonard den Ottolander <leonard@den.ottolander.nl>
2005-11-03 02:18:38 +00:00
Leonard den Ottolander
894b343f90
* main.c (directory_history_add): Fix invalid directory preselection on cd.
2005-11-02 11:50:51 +00:00
Pavel Roskin
da6ee30252
* man2hlp.c (main): Fix using 0 instead of NULL.
2005-10-08 04:55:06 +00:00
Pavel Roskin
528e392458
* widget.c (listbox_fwd): Eliminate forward inline declaration.
2005-10-08 04:52:42 +00:00
Leonard den Ottolander
79567ed4a1
view.c (search): Fix backward regex search off by one.
2005-10-04 21:07:20 +00:00
Pavel Roskin
01f571f1d2
* util.c (gettext_ui): Rename to Q_() for glib compatibility,
...
move ...
* glibcompat.c: ... here. Adjust all callers.
2005-10-04 15:20:10 +00:00
Pavel Roskin
0f46bb2632
* screen.c (display_mini_info): Use ngettext().
2005-10-03 23:37:51 +00:00
Leonard den Ottolander
9ac5ed8d4e
* key.c (xmouse_get_event): Catch GPM_DRAG event.
...
* mouse.c (enable_mouse, disable_mouse): Update printed escape sequence.
2005-09-28 17:21:53 +00:00
Leonard den Ottolander
a621fb9b67
* execute.c (do_execute): Flush stdout after printing the command to be
...
executed.
2005-09-17 12:08:19 +00:00
Leonard den Ottolander
13d8512c37
* util.c: Indentation cleanup (function result types on different lines
...
then function names).
2005-09-17 12:01:04 +00:00
Leonard den Ottolander
2319ac0f7b
* file.c (make_symlink): Fix off by one in symlink creation.
2005-09-17 11:45:13 +00:00
Leonard den Ottolander
b2952be541
* util.c (diff_two_paths): Abort when second symlink can't be resolved
...
(fixes segfault).
2005-09-17 11:40:31 +00:00
Roland Illig
06f4ef50e6
option_backup_ext is only available when the internal editor is enabled.
2005-09-07 10:08:25 +00:00
Roland Illig
cd8cf54cbb
* setup.c: Replaced the editor_option_backup_ext_int hack with a
...
string configuration variable, which allows the backup extension
to have more than just four characters. Added generic support
for string options.
2005-09-07 08:55:31 +00:00
Roland Illig
4df8fde197
* util.h: Added get_config_string() and set_config_string(),
...
which are analogous to get_int() and set_int().
* util.c: Likewise.
2005-09-07 08:47:22 +00:00
Roland Illig
fa0d732112
* setup.c: Renamed options[] to int_options[].
2005-09-07 07:55:15 +00:00
Roland Illig
689ee9f8ae
* main.c (midnight_callback): Ctrl-space calculates the size of
...
the currently selected directory entry. This is mostly useful for
directories.
2005-09-06 11:38:45 +00:00
Roland Illig
0e218318da
* cmd.c: Added single_dirsize_cmd(), which computes the size of
...
the currently selected panel entry and moves down. Suggested by
ForestCreature on mc-devel.
* cmd.h: Likewise.
* main.c (midnight_callback): When the space key is pressed and
the command line is empty, single_dirsize_cmd() is called.
2005-09-06 06:41:35 +00:00
Roland Illig
2d64b1c884
Replaced const_cast with str_unconst. Removed unused mvaddstr.
2005-09-05 03:22:04 +00:00
Roland Illig
4486c5eec2
Replaced const_cast with str_unconst.
2005-09-05 03:20:53 +00:00
Roland Illig
500136d789
Removed unnecessary const_cast.
2005-09-05 03:20:27 +00:00
Roland Illig
16bb1e8eaa
* tty.c: Don't use SLsmg_write_char, because Redhat provides a
...
different API to that function when the preprocessor symbol UTF8
is defined.
2005-09-05 03:05:39 +00:00
Roland Illig
ad9acbde44
Moved printwstr() from src/slint.c to edit/editdraw.c.
2005-09-05 02:14:29 +00:00
Roland Illig
03759c8f34
* main.h: Added const qualifier to the global prompt variable.
...
* main.c: Likewise.
2005-09-05 02:10:48 +00:00
Roland Illig
1a0fad0d01
* main.h: Added const qualifier to the global prompt variable.
...
* main.c: Likewise.
2005-09-05 02:10:47 +00:00
Roland Illig
fed479813e
Added const qualifier.
2005-09-05 02:04:23 +00:00
Roland Illig
14e619d39e
Switched from printw() to tty_printf() to avoid gcc
...
warnings. st_ctime is not the creation time, but the status
change time.
2005-09-05 01:36:58 +00:00
Roland Illig
1c1f2f5210
Switched from printw() to tty_printf() to avoid gcc
...
warnings. st_ctime is not the creation time, but the status
change time.
2005-09-05 01:36:57 +00:00
Roland Illig
bb2feb9e7f
* info.c: Switched from printw() to tty_printf() to avoid gcc
...
warnings. st_ctime is not the creation time, but the status
change time.
2005-09-05 01:34:25 +00:00
Roland Illig
1efcbd27a7
* widget.c: Reduced the number of gcc warnings by using
...
tty_printf() instead of printw().
2005-09-04 22:04:32 +00:00
Roland Illig
612f1555eb
* tty.h: Added tty_printf().
...
* tty.c: Likewise.
2005-09-04 22:02:25 +00:00
Roland Illig
6bbcb8ef76
Added a comment to ecs_strbox concerning characters with other width
...
than 1.
2005-09-04 16:34:36 +00:00
Roland Illig
e7917badfa
* main.h: Removed unused variables acs_hline and acs_vline.
2005-09-04 16:32:09 +00:00
Roland Illig
26ffecfc09
* treestore.c (str_common): Don't require the arguments to be
...
different.
2005-09-01 20:56:10 +00:00
Roland Illig
49448bfa43
* view.c (view_fix_cursor_position): Renamed to
...
view_scroll_to_cursor.
2005-09-01 20:49:17 +00:00
Roland Illig
9fe9ad92a1
Reformatted the comments.
2005-09-01 17:06:38 +00:00
Roland Illig
7b95eee94a
Added a comment that the user is responsible for not overflowing the
...
screen.
2005-09-01 17:04:05 +00:00
Roland Illig
f901a3549c
Added line breaks before the function names.
2005-09-01 17:01:12 +00:00
Roland Illig
c3ba638d43
* myslang.h: Partly switched to the new tty functions.
2005-08-29 10:02:35 +00:00
Roland Illig
f85a7d8275
Removed unused variable.
2005-08-29 09:40:58 +00:00
Roland Illig
af781d96f8
Added tty.c.
2005-08-29 09:36:32 +00:00
Roland Illig
ab3005ff93
Added a type conversion to view_growbuf_read_until to suppress a gcc
...
warning. Instead of treating various expressions as booleans, compare
them with a 0 of appropriate type.
2005-08-29 09:34:43 +00:00
Roland Illig
0c4c461433
The got_interrupt function from tty.c is defined for ncurses, too.
2005-08-29 09:30:45 +00:00
Roland Illig
132ee7a361
Fixed indentation.
2005-08-29 09:05:24 +00:00
Roland Illig
e223667dc3
Removed trailing white-space.
2005-08-29 09:04:39 +00:00
Roland Illig
a1bf93f138
Changed the prototypes of tty_print_hline and tty_print_vline.
2005-08-29 09:03:10 +00:00
Roland Illig
2a0f1a1cd0
* view.c: Converted to use the new tty functions.
2005-08-29 08:53:28 +00:00
Roland Illig
66332a4fb1
* slint.c: The handling of user interrupts has been moved to ...
...
* tty.c: ... this newly created file, which contains a simple,
not yet complete interface to the terminal library. It should be
used instead of depending directly on ncurses or SLang features.
* tty.h: Added the new function prototypes from tty.c and some
legacy definitions.
2005-08-29 08:45:28 +00:00
Roland Illig
f1452c9580
* view.c (view_new): Separated the mode toggling functions from
...
updating the display. The non-updating functions are called on
initialization.
2005-08-28 20:38:53 +00:00
Roland Illig
1d7b05f8f2
* view.c (view_hexedit_save_changes): Added an assertion that
...
view->filename be not NULL.
* view.c (view_toggle_magic_mode): Check if filename != NULL
before dereferencing the pointer.
* view.c (view_change_nroff_mode_cmd): Renamed to
view_toggle_nroff_mode_cmd.
* view.c (view_new): Don't initialize the various view->mode
variables by now. This needs to be done correctly.
2005-08-28 19:10:00 +00:00