Andrew Borodin
9523401374
(io_blksize): add intermediate variable.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-25 13:15:12 +03:00
Andrew Borodin
ba526badf2
(ST_BLKSIZE): fix signed and unsigned comparision.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-25 13:15:12 +03:00
Andrew Borodin
e7c01c7781
Ticket #2193 : use Coreutils way to define buffer size to copy file.
...
m4.include/stat-size.m4, lib/stat-size.h: get these files from Gnulib.
src/filemanager/ioblksize.h: get this file from Coreutils.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-25 13:12:51 +03:00
Yury V. Zaytsev
5ba97897cf
Merge branch '3611_fish_ls_perl_fix'
2016-04-24 17:04:39 +02:00
Andreas Mohr
263012123c
Ticket #3611 : fix FISH ls helper (Perl)
...
In #3599 a Perl warning was introduced in fish_list_perl(), so
fish_list_perl() was skipped (return code 255) and fallback ls function
was used instead.
Additionally, all % chars must quoted because of g_strconcat() after
reading script file into a string.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2016-04-21 21:37:35 +02:00
Andrew Borodin
9d0f6e584e
Merge branch '3598_wcast_qual'
...
* 3598_wcast_qual: (27 commits)
src/setup.c: cleanup -Wcast-qual warning.
src/clipboard.c: cleanup Wcast-qual warning.
src/viewer/search.c: cleanup some -Wcast-qual warning.
src/vfs/extfs.c: cleanup -Wcast-qual warnings.
src/filemanager/find.c: cleanup -Wcast-qual warning.
src/filemanager/file.c: cleanup -Wcast-qual warning.
src/filemanager/file.c: cleanup -Wcast-qual warning.
src/filemanager/panel.c: cleanup -Wcast-qual warning.
src/editor/syntax.c: cleanup -Wcast-qual warnings.
src/editor/editcmd.c: cleanup some -Wcast-qual warnings.
src/editor/choosesyntax.c: cleanup -Wcast-qual warning.
src/diffviewer/ydiff.c: cleanup -Wcast-qual warning.
(dview_get_utf): apply const qualifier to str argument.
lib/charsets.[ch]: clarify usage of const qualifier.
lib/widget/input_complete.c: cleanup -Wcast-qual warning.
lib/widget/input.c: cleanup -Wcast-qual warning.
lib/widget/dialog.c: cleanup -Wcast-qual warning.
lib/widget/buttonbar.c: cleanup -Wcast-qual warning.
lib/vfs/path.c: cleanup some -Wcast-qual warning.
lib/tty/tty-ncurses.c: cleanup -Wcast-qual warning.
...
2016-04-16 10:24:58 +03:00
Andreas Mohr
d033e17a23
src/setup.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
2016-04-16 10:23:45 +03:00
Andreas Mohr
9a48fb4b0c
src/clipboard.c: cleanup Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
311ef4c669
src/viewer/search.c: cleanup some -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
f9f08fbfd7
src/vfs/extfs.c: cleanup -Wcast-qual warnings.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
0fae3ded3e
src/filemanager/find.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andrew Borodin
8fd2fd69d7
src/filemanager/file.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
e9730afef5
src/filemanager/file.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
6005a63cad
src/filemanager/panel.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
3e7695619f
src/editor/syntax.c: cleanup -Wcast-qual warnings.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
d640a34ada
src/editor/editcmd.c: cleanup some -Wcast-qual warnings.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:45 +03:00
Andreas Mohr
edff1cff6f
src/editor/choosesyntax.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
9cb22c41a6
src/diffviewer/ydiff.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
2016-04-16 10:23:44 +03:00
Andrew Borodin
0b46b4690f
(dview_get_utf): apply const qualifier to str argument.
2016-04-16 10:23:44 +03:00
Andrew Borodin
fde36f2d1a
lib/charsets.[ch]: clarify usage of const qualifier.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
ff9d37cb8f
lib/widget/input_complete.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andrew Borodin
ecfba8399c
lib/widget/input.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
68d7f53039
lib/widget/dialog.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
a5cd35d11e
lib/widget/buttonbar.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
3231160d99
lib/vfs/path.c: cleanup some -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
9dddb0c78f
lib/tty/tty-ncurses.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
983ada66b0
lib/tty/key.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andrew Borodin
41035995c8
lib/strutil/{strutil8bit.c,strutilutf8.c}: cleanup -Wcast-qual warning.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
c0b60e274e
lib/skin/ini-file.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
f3f927c19e
lib/search/regex.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:44 +03:00
Andreas Mohr
0535ddddcc
lib/search/lib.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:43 +03:00
Andreas Mohr
97e370e396
lib/mcconfig/paths.c: cleanup -Wcast-qual warning.
...
Signed-off-by: Andreas Mohr <and@gmx.li>
2016-04-16 10:23:43 +03:00
Andreas Mohr
16f229114a
Ticket #3598 : cleanup some -Wcast-qual compiler warnings.
...
Introduce CONST_WIDGET helper and use it.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-16 10:23:43 +03:00
Andrew Borodin
51d0783bf9
Merge branch '3571_high_level_mouse_api'
...
* 3571_high_level_mouse_api: (28 commits)
Rename mouse.was_drag to mouse.last_msg.
Drop old mouse API and use the new one.
Fix menu handling.
Optimize menu activation.
mcedit: rename MCEDIT_DRAG_NORMAL to MCEDIT_DRAG_NONE.
mcedit: use the new mouse API.
WEdit: get rid of mouse event pump.
WEdit: use the new mouse API.
Help: use the new mouse API.
Viewer: use the new mouse API.
Diff viewer: usethe new mouse API.
WTree: use the new mouse API.
(panel_mouse_callback): minor optimization.
WPanel: use the new mouse API.
WMenuBar: execute menu item after drag action.
WMenuBar: a few mouse handling fixes.
WMenuBar: use the new mouse API.
WRadio: use the new mouse API.
WInput: use the new mouse API.
WCheck: use the new mouse API.
...
2016-04-11 09:50:39 +03:00
Mooffie
438e841226
Rename mouse.was_drag to mouse.last_msg.
...
Get rid of the 'click' variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Andrew Borodin
8490ca7be4
Drop old mouse API and use the new one.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Mooffie
781b810c13
Fix menu handling.
...
We now send mouse events to widgets in reverse Z-order, as done in common GUIs.
This makes it easy to implement "invisible" menubars correctly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Andrew Borodin
c9a437a9c2
Optimize menu activation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Andrew Borodin
1adc6a53d1
mcedit: rename MCEDIT_DRAG_NORMAL to MCEDIT_DRAG_NONE.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Andrew Borodin
46963b3e71
mcedit: use the new mouse API.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Mooffie
be00764bc8
WEdit: get rid of mouse event pump.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Andrew Borodin
c86e45e482
WEdit: use the new mouse API.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 15:29:55 +03:00
Andrew Borodin
2cf4c11aa8
Help: use the new mouse API.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 14:16:08 +03:00
Andrew Borodin
f926b25fe5
Viewer: use the new mouse API.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 14:16:08 +03:00
Andrew Borodin
4317ceaf84
Diff viewer: usethe new mouse API.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 14:16:08 +03:00
Andrew Borodin
4b420aa85c
WTree: use the new mouse API.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 14:16:08 +03:00
Andrew Borodin
5debec4917
(panel_mouse_callback): minor optimization.
2016-04-01 14:16:08 +03:00
Andrew Borodin
54456a678f
WPanel: use the new mouse API.
2016-04-01 14:16:08 +03:00
Andrew Borodin
fa4e69b3b4
WMenuBar: execute menu item after drag action.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-04-01 14:16:08 +03:00
Mooffie
cae293b4d7
WMenuBar: a few mouse handling fixes.
2016-04-01 14:16:08 +03:00