Roland Illig
9902c1b885
Added missing initializers for QuickDialog.i18n.
2004-08-15 22:55:17 +00:00
Roland Illig
c6ecc5b303
Marked the last item of a QuickWidget array as NULL_QuickWidget.
2004-08-15 18:24:06 +00:00
Pavel Roskin
a7c0bbac62
* editcmd.c: Use input_expand_dialog() instead of input_dialog()
...
for loading and saving files.
2003-11-27 10:23:50 +00:00
Pavel Roskin
f51e86a184
* editcmd.c (pipe_mail): Eliminate g_strdup_printf().
...
(edit_complete_word_cmd): Fix possible buffer overflow.
2003-11-24 20:27:34 +00:00
Pavel Roskin
4bc92accff
* editcmd.c (edit_mail_dialog): Trivial clean-up.
2003-11-03 18:59:50 +00:00
Pavel Roskin
8bc40b44f0
Fix includes not to rely on $(top_srcdir) being in the include path.
2003-10-29 08:54:22 +00:00
Pavel Roskin
e90a7540a2
* edit.h: Make static all functions and variables that don't
...
need to be global. Remove unused functions. Adjust all
dependencies.
2003-10-14 21:48:40 +00:00
Pavel Roskin
e0f9b7ab83
* editcmd.c (edit_raw_key_query): Use straight widget order.
...
(edit_completion_dialog): Likewise.
* editwidget.c (edit): Likewise.
2003-09-12 21:30:29 +00:00
Pavel Roskin
e14f56d71b
* dlg.h: Replace DLG_BACKWARD to DLG_REVERSE with a better
...
defined meaning. Make it default to populate dialogs from the
top. Change all calls to create_dlg().
2003-09-12 21:22:01 +00:00
Pavel Roskin
0c794a4e95
Fix unsafe defines.
2003-09-10 21:33:12 +00:00
Pavel Roskin
13a02ef978
* dlg.h: Use new types for dialog callbacks.
...
(dlg_cb_fn): Swap msg and parm arguments for consistency with
widget callbacks. Adjust all dependencies.
2003-09-07 21:24:01 +00:00
Pavel Roskin
f8e00e7b6a
* widget.c (listbox_new): Remove "action" argument. Listboxes
...
without callbacks default to closing the dialog. Adjust all
users. This fixes double click on completion listbox.
* widget.h: Use uppercase names for the return values of the
listbox callback.
2003-09-01 07:31:56 +00:00
Pavel Roskin
58545e65c2
* widget.h: Use exact type in the listbox callback. Adjust all
...
legitimate users, remove all unused callbacks.
2003-09-01 05:43:20 +00:00
Pavel Roskin
2b9b18150e
* widget.h (button_new): Remove unused extra argument. Adjust
...
all dependencies.
2003-09-01 02:07:02 +00:00
Pavel Roskin
fab6e8a493
* widget.h: Completely get rid of tkname. Rename it to histname
...
for the input widget. Adjust all dependencies.
2003-09-01 00:18:37 +00:00
Pavel Roskin
10f65ac83d
* dlg.h (struct Widget): Remove tkname field.
...
(init_widget): Remove tkname argument.
* widget.h (listbox_new): Likewise.
Adjust all dependencies.
2003-08-31 23:29:49 +00:00
Pavel Roskin
d521073663
Add missing include.
2003-08-18 05:20:52 +00:00
Pavel Roskin
cf9acd036e
* edit-widget.h: Resurrect "dir" field in WEdit to store
...
directory for relative filenames.
* edit.c (edit_clean): Release edit->dir.
* editcmd.c (edit_save_file): Use absolute filename.
Temporarily disable safe save and backups on remote VFS because
it doesn't work - again.
2003-07-31 16:38:07 +00:00
Pavel Roskin
81d396da33
Remove useless initialization.
2003-07-31 16:32:30 +00:00
Pavel Roskin
dadbdd25e9
* editcmd.c (edit_quit_cmd): Rename to ...
...
(edit_ok_to_exit): ... this. Don't stop dialog - this function
is called by the dialog code.
* editwidget.c (edit_dialog_callback): Process DLG_VALIDATE
event. Don't exit it the user wants to continue editing.
* edit.c (edit_execute_cmd): Close the dialog - it will ask user
if necessary.
2003-07-21 03:54:47 +00:00
Pavel Roskin
7a5c9a3834
Kill another instance of using delete_file in a wrong place.
2003-07-20 23:34:29 +00:00
Pavel Roskin
9bc8df86ad
* editcmd.c (edit_quit_cmd): Don't save this command in the undo
...
stack. Don't force any refresh. Don't delete unsaved files, do
it ...
* edit.c (edit_clean): ... here. This ensures that unsaved
files from the mcedit command line are erased on Ctrl-n.
2003-07-20 23:24:25 +00:00
Pavel Roskin
59593d0e1b
* edit-widget.h: Eliminate unused explicit_syntax field.
2003-07-08 23:58:36 +00:00
Pavel Roskin
4a398f0ee7
* editcmd.c (edit_ext_cmd): Fix memory leak.
2003-06-05 17:55:50 +00:00
Pavel Roskin
69a16471a9
edit_ext_cmd(): trivial simplification.
2003-06-05 04:06:37 +00:00
Pavel Roskin
3cd4571dc9
Typos and britainisms.
2003-06-02 18:39:44 +00:00
Pavel Roskin
a66e5f511f
Add comment for edit_ext_cmd.
2003-05-30 21:14:07 +00:00
Pavel Roskin
bdc56f331b
* editcmd.c: Implement pasting the output of any external
...
command.
* editmenu.c: Add menu entries for that.
* editcmddef.h: Add new command CK_ExtCmd.
2003-05-30 21:06:10 +00:00
Pavel Roskin
d88b75838a
* editlock.c, editlock.h: New files. Implement file locking in
...
Emacs style, as documented in JED editor sources.
* Makefile.am: Add those files to build tree.
* edit-widget.c (WEdit): New property 'locked', 0 on edit_init.
* edit.c (edit_modification): Lock buffer on modification.
* editcmd.c (edit_save_cmd, edit_save_as_cmd): Handle locking
during file save.
(edit_load_file_from_filename): Unlock. Remove 2 duplicate
lines (handled by edit_init).
(edit_quit_cmd): Unlock.
2003-04-02 19:36:10 +00:00
Andrew V. Samoilov
4718c1105d
* editcmd.c (edit_block_process_cmd): Quote filename.
2002-12-19 13:01:34 +00:00
Andrew V. Samoilov
bce2ba99e9
* edit.h (edit_save_mode_t): New enum for file saving mode.
...
* editcmd.c (): Use edit_save_mode_t.
(pipe_mail): Quote to, subject and cc with name_quote().
* edit.c (edit_get_filter): Use quoted filename.
(edit_get_write_filter): Use quoted writename.
(edit_push_action): Use g_realloc().
2002-12-18 20:04:39 +00:00
Pavel Roskin
e0a241f570
* editcmd.c (edit_goto_cmd): Add support for negative line
...
numbers, which are counted from the last line. Use strtol(), so
hex numbers are supported as well.
2002-12-16 07:13:12 +00:00
Pavel Roskin
aaf569bd48
* edit.h: Don't inclide malloc.h. Use g_malloc() and g_free()
...
instead. Adjust all dependencies.
2002-12-15 18:55:53 +00:00
Pavel Roskin
ca658f44a6
* editcmd.c (edit_split_filename): Rename to edit_set_filename,
...
use g_malloc() and g_free() on edit->filename.
2002-12-15 02:40:38 +00:00
Pavel Roskin
46958e5630
s/Error trying to/Cannot/
2002-12-08 09:27:18 +00:00
Pavel Roskin
581cf41929
* edit.c (edit_open_file): Remove "text" and "text_size"
...
arguments. Adjust all callers.
2002-12-08 09:10:38 +00:00
Pavel Roskin
b64955fbbd
s/Failed trying to/Cannot/
2002-12-08 00:40:11 +00:00
Pavel Roskin
dceb3b50d4
* editcmd.c: Include dialog.h.
...
Reported by Frédéric L. W. Meunier <lists@pervalidus.net>
2002-12-04 07:20:19 +00:00
Pavel Roskin
dd7f5798fa
* edit.h: Remove "dir" field in WEdit - it's always an empty
...
string. Adjust all dependencies.
2002-11-30 19:50:51 +00:00
Pavel Roskin
9a4513aceb
* editcmd.c (edit_get_save_file): Remove first argument, it's
...
unused.
(edit_get_save_file): Likewise.
2002-11-30 18:49:20 +00:00
Pavel Roskin
29f1543919
* editcmd.c (edit_set_search_parameters): Use g_malloc().
...
(edit_complete_word_cmd): Use g_free().
2002-11-30 17:41:07 +00:00
Pavel Roskin
18de4488e3
* edit-widget.h: Move typedef WEdit and file names ...
...
* edit.h: ... here. Don't include edit-widget.h. Adjust all
dependencies.
2002-11-29 03:01:06 +00:00
Pavel Roskin
7969f851bb
* edit.h: Decentralize includes.
2002-11-14 19:38:26 +00:00
Pavel Roskin
e741be7a5d
* *.c: Fix all global functions without declarations - declare,
...
make static or remove.
2002-11-13 04:32:00 +00:00
Pavel Roskin
4061502e82
* editcmd.c: Warning fix for compilers that don't understand the
...
"const" keyword and variable size arrays.
2002-11-11 08:06:01 +00:00
Pavel Roskin
c626f5fdcc
* editcmd.c (edit_save_file): Restore ownership before access
...
mode, not after. Otherwise suid bit is lost.
Reported by Nerijus Baliunas <nerijus@users.sourceforge.net>
2002-11-06 18:09:40 +00:00
Pavel Roskin
b2fd313167
* edit.c: Include charset.h unconditionally, use new conversion
...
functions that don't require ifdefs.
* edit_key_translator.c: Likewise.
* editcmd.c: Likewise.
* editdraw.c: Likewise.
2002-10-30 23:56:49 +00:00
Pavel Roskin
a84b0fc9cd
Fix some of the most ugly abuses of mixed caps in English texts,
...
especially in button captions.
2002-10-21 22:26:39 +00:00
Pavel Roskin
31f1ddd081
Reuse message " Insert File ".
2002-10-21 05:31:47 +00:00
Pavel Roskin
b3614cbd31
Reuse text " Delete macro " with different capitalization.
2002-10-21 05:26:55 +00:00