Andrew Borodin
ebbf6fbcdc
Replaced functions.
...
attrset() -> tty_setcolor()
move() -> tty_gotoyx()
getyx() -> tty_getyx()
2009-08-12 21:19:20 +04:00
Andrew Borodin
389e5bf613
Moved rxvt.c, win.[ch] and x11con.[ch] from src to src/tty directory.
...
Fixed includes.
Fixed library order in src/Makefile.am due to --as-needed linking option.
2009-08-12 21:19:20 +04:00
Andrew Borodin
f3730bdc41
Initial step to move TTY layer of MC to separate library.
2009-08-12 21:19:20 +04:00
Andrew Borodin
8a1c364ff0
Ticket #330 : show dropped down menu is screen has been resized.
...
Now works for both values of "menuBar visible" option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-10 15:30:29 +04:00
Slava Zanko
2ebdf91079
Merge branch 'm-utf-8'
...
* m-utf-8: (223 commits)
Fix wildcard pattern in file select and file find dialogs
Project builds with option --disable-charsets
Deleted build-glib1.sh because glib1 don't work with utf-8
fix building without --enable-charset
Total replacement to mc_search stuff in all places
Search engine: if found_len parameter NULL, then mc_search_run don't try to fill them
src/view.c: Reworked search stuff to usage src/search
refactoring: rename edit/editcmd_dialog.c:editcmd_dialog__get_search_types_list to
Search engine: development of hex search complete
Search engine: remove forgotten debug string and reindent file
Search engine:
configure.ac: if present glib-2.14 and higher, libpcre don't linked
Search engine: now used regexp external engines:
src/find.c: Fixed core dump if content search pattern no present
edit/editcmd_dialogs.c: fixed state of search type between dialog window calls
Find files: checkbox 'Regular expression' for content search now default unchecked
Find files: changes for usage of new search engine:
Fix copy of current/opposite path to command line: remove charset info from path
src/Makefile.am: add some header files to Make-tracking
Fixed editor menu reloading.
2009-05-07 13:01:01 +03:00
Andrew Borodin
aadcca8048
src/edit.c (create_menu): small fix of i18n for menu entry text.
2009-05-01 21:08:21 +04:00
Andrew Borodin
931f0d073d
src/menu.c: nice menu view: added LTEE and RTEE symbols to menu separators.
...
Small optimization. Removed some trailing spaces. Some formatting.
2009-04-26 18:22:53 +04:00
Andrew Borodin
95b622f0db
src/menu.c (create_menu): don't translate menu entry text if ENABLE_NLS isn't defined.
2009-04-24 20:11:45 +04:00
Andrew Borodin
baef389ce7
menu.c (menubar_new): init the subsel field clearly.
...
(menu_callback): show menu after screen resize.
2009-04-22 12:00:21 +03:00
Mikhail S. Pobolovets
1959b42fdc
Merge branch '252_doxygen_desc_src'
...
Conflicts:
src/file.h
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-04-16 08:26:52 +03:00
Ilia Maslakov
3b5e2c052f
Merge branch 'utf-8' into master
...
resolve conflicts:
configure.ac
src/complete.c
src/file.c
src/layout.c
src/main.c
src/menu.c
src/screen.c
src/util.c
src/widget.c
src/widget.h
2009-04-04 19:50:46 +00:00
Andrew Borodin
a9d59f9afc
Fixed menu painting for NCurses screen library.
2009-02-26 19:55:10 +03:00
Mikhail S. Pobolovets
758ab591d8
Simple doxygen description for files in src directory.
...
Mostly \file and \brief tag added.
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-02-10 16:07:59 +02:00
Slava Zanko
e54f318cef
Completely removed MHL stuff
...
Changed all source files relative to remove MHL
Some string-related functions moved into src/util.c
This stable fix.
2009-02-06 14:01:28 +02:00
Patrick Winnertz
d84586ba82
Reverted the use of mhl_str_dup and use g_strdup instead.
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:40:32 +01:00
Patrick Winnertz
1c287d798d
First bunch of mhl_mem_free removal patches
...
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-02-05 23:36:58 +01:00
Enrico Weigelt, metux IT service
8b38cf44da
manully merged 227_replace_g_free
2009-02-02 22:34:05 +01:00
Enrico Weigelt, metux IT service
f921cc40cd
replaced calls to g_strdup() by mhl_str_dup()
2009-01-30 20:10:40 +01:00
Enrico Weigelt, metux IT service
15d7d47c15
replaced g_free() by mhl_mem_free()
2009-01-30 19:28:35 +01:00
Slava Zanko
4f00496233
patches by Rostislav Beneš: mc-12-menu
...
like buttons use menu entries hotkey_t. But menus are staticly defined, so this
change is much bigger. All menu declaration must be edited. follow standard
changes in drawing and handling hotkeys.
now basic mc's functions works in utf-8, remain correct calculation of controls
width in dialogs, replace functions like tolower, toupper,isspace, ... width
functions from strutil or g_ascii variant.
2009-01-26 11:47:41 +02:00
Pavel Tsekov
7ad6feae42
* src/achown.c: Update copyright notice.
...
* src/chmod.c: Likewise.
* src/chown.c: Likewise.
* src/cmd.c: Likewise.
* src/color.c: Likewise.
* src/command.c: Likewise.
* src/cons.handler.c: Likewise.
* src/cons.saver.c: Likewise.
* src/dialog.c: Likewise.
* src/dir.c: Likewise.
* src/help.c: Likewise.
* src/info.c: Likewise.
* src/man2hlp.c: Likewise.
* src/menu.c: Likewise.
* src/mouse.c: Likewise.
* src/option.c: Likewise.
* src/profile.c: Likewise.
* src/screen.c: Likewise.
* src/setup.c: Likewise.
* src/subshell.c: Likewise.
* src/user.c: Likewise.
* src/win.c: Likewise.
* vfs/sfs.c: Likewise.
* vfs/tcputil.c: Likewise.
2007-09-26 10:22:25 +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
070b0dccf2
Use hline() instead of addch() to clear the menubar widget area.
2005-08-05 12:01:47 +00:00
Pavel Roskin
1f60f44145
Update postal address of Free Software Foundation.
2005-05-27 03:35:10 +00:00
Roland Illig
a3e822b6ba
* menu.c: Removed function casts.
2005-05-23 16:39:52 +00:00
Pavel Roskin
9260860bbf
* dialog.c (dlg_select_widget): Remove first argument, it's
...
redundant. Adjust all callers.
(dlg_replace_widget): Likewise.
2005-05-20 20:22:06 +00:00
Pavel Roskin
c90d263d2c
* .c: Sanitize all calls to functions from ctype.h. Fix gcc 4.0
...
warnings.
2005-05-11 01:16:58 +00:00
Roland Illig
fc85bdba7e
* *.c: Reordered header inclusion.
2005-02-08 09:04:03 +00:00
Roland Illig
8b1e87523a
* boxes.c (display_unit): Added const qualifier.
...
* file.c (check_hardlinks): Likewise.
* find.c (find_do_view_edit): Likewise. (find_file): Likewise.
* global.h (home_dir): Likewise.
* main.c (get_parent_dir_name): Likewise. (init_xterm_support):
Likewise. (OS_Setup): Likewise.
* menu.c (create_menu): Likewise.
* mountlist.c (xatoi): Likewise. (read_filesystem_list): Likewise.
* poptconfig.c (poptReadDefaultConfig): Likewise.
* popthelp.c (showHelpIntro): Likewise.
* rxvt.c (look_for_rxvt_extensions): Likewise.
* slint.c (has_colors): Likewise.
* subshell.c (check_sid): Likewise.
* user.c (check_format_var): Likewise.
* widget.c (radio_callback): Likewise.
2004-09-25 13:46:23 +00:00
Roland Illig
2994c738d0
* help.c (search_string): Fixed a warning about a const qualifier.
...
A local copy of the string is used for modifying.
* menu.h: Removed the const qualifier from Menu.name and
Menu.help_node as they are freed in destroy_menu.
* menu.c (destroy_menu): Removed the (now unnecessary) casts.
* popt.h: Removed a const qualifier to avoid compiler warnings.
* profile.c (get_profile_string): Added const qualifiers to
avoid compiler warnings. (GetSetProfile): likewise.
(GetSetProfileChar): likewise.
* profile.h (get_profile_string): likewise.
* win.c (check_movement_keys): likewise.
* win.h (check_movement_keys): likewise.
2004-09-18 14:30:58 +00:00
Andrew V. Samoilov
d3e4fcb5b0
* menu.c (destroy_menu): Fix warnings.
...
* view.c (view_adjust_size): Likewise.
* widget.c (find_buttonbar): Likewise.
2004-09-02 20:14:12 +00:00
Roland Illig
03913065b4
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 23:27:40 +00:00
Roland Illig
8458240147
* Code cleanup: Added const qualifier for variables and
...
function declarations where possible. No functional changes.
2004-08-29 16:42:40 +00:00
Roland Illig
6cefb6d3bb
Made the data type of some variables more appropriate.
2004-08-16 03:12:05 +00:00
Pavel Roskin
4014009077
* menu.c (menu_scan_hotkey): Use g_strlcpy() to avoid undefined
...
behavior when using strcpy() on overlapping strings.
* profile.c (GetSetProfile): Likewise.
* widget.c (button_scan_hotkey): Likewise.
Found by Valgrind.
2003-09-22 19:40:07 +00:00
Pavel Roskin
6eda31f362
* menu.h: Return to keeping dialog id instead of a widget
...
pointer for previous widget. The widget can be replaced in the
meantime.
* dlg.c (dlg_select_by_id): New function, essentially a cleaner
implementation of dlg_select_nth_widget().
2003-09-13 07:43:20 +00:00
Pavel Roskin
c0b34498dd
* dlg.h: Merge Widget_Item into Widget. Massive adjustment.
2003-09-12 23:38:42 +00:00
Pavel Roskin
824a5256c1
* menu.h (WMenu): Save pointer to the previous widget, not its
...
number. Adjust all dependencies.
* menu.c (menubar_finish): Restore focus on the saved widget.
* dlg.c (dlg_item_number): Remove, it's unused now.
(dlg_select_nth_widget): Likewise.
2003-09-12 22:45:51 +00:00
Pavel Roskin
e355e25b56
* dlg.h: Use cb_ret_t and widget_msg_t in widget callbacks.
...
Massive adjustment for the above.
2003-09-10 22:48:54 +00:00
Pavel Roskin
24737eb1c1
* dlg.h: Remove restroy callback. Widgets should use
...
WIDGET_DESTROY. Adjust all dependencies.
2003-09-10 18:21:40 +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
c72a1ea44c
Get rid of all references to NATIVE_WIN32.
2003-07-23 03:22:32 +00:00
Pavel Roskin
f2c028ce46
s/can not/cannot/
2002-12-26 02:21:37 +00:00
Pavel Roskin
5cb2ef30f3
Fix duplicate declarations.
2002-11-15 06:38:55 +00:00
Pavel Roskin
d4ddbe5148
* cmd.c (menu_edit_cmd): Make static, provide separate functions
...
without arguments to access it.
* menu.h: Make callfn function without arguments - we are not
using any arguments now.
2002-11-14 06:30:16 +00:00
Pavel Roskin
31f491b01e
* dlg.h: Remove Dlg_head argument from callback_fn - it's
...
excessive and can be trivially derived from the widget.
(default_proc): Remove Dlg_head argument. Change all callers.
* widget.c (listbox_draw): Remove Dlg_head argument.
2002-11-13 02:27:00 +00:00
Pavel Roskin
b0481b41bf
* menu.h: Remove "*" from the definition of the type "Menu"
...
for consistency with other types. Change all dependencies.
(menubar_event): Make static.
2002-11-12 21:01:50 +00:00
Pavel Roskin
da7e82d253
Global removal of RCS Id: flags.
2002-09-26 23:13:45 +00:00
Pavel Roskin
ec1b1f9614
Globally replace OS2_NT and _OS_NT with WIN32_NATIVE.
2002-09-10 22:04:11 +00:00
Pavel Roskin
608d74abda
* menu.c (create_menu): Get help node as an argument.
...
* main.c: Use new create_menu() interface.
2002-08-20 21:30:06 +00:00