2177 Commits

Author SHA1 Message Date
Jinhao
a6a2e54c40 Merge branch 'ErrorFlynn-hotfix-1.7' into hotfix-1.7.2 2020-02-08 07:28:45 +08:00
Jinhao
fa659df705 Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2020-02-06 01:34:42 +08:00
ErrorFlynn
ff7fca9311
fix: submenu option items unresponsive to clicks
When the user opens a submenu containing items with the style `menu::checks::option` and clicks an option, the radio button logic doesn't work. This bug was discovered and fixed by nanapro.org forum user "huycan" (I'm just submitting the PR). See this forum post: http://nanapro.org/en-us/forum/index.php?u=/topic/1256/ggleave-a-menu-open

As mentioned in more detail in the forum post linked above, my understanding of why this happens is that `menu_builder::checked` fails because the `menu_window` of the submenu is created with the `menu_builder` object used by the parent menu.
2020-02-03 02:49:20 -05:00
Jinhao
e08a7a3531 add workaround of inline namespace for c++11 2019-12-21 05:18:28 +08:00
Jinhao
8911e2d76a Merge branch 'qPCR4vir-hotfix-1.7.2' into hotfix-1.7.2 2019-12-05 03:58:08 +08:00
qPCR4vir
3d00b7c589 comments
(cherry picked from commit 3b57bd0a1f2375ec88e57298276242edaf611b9e)
2019-12-03 19:10:26 +01:00
qPCR4vir
4b7facebdf fix conditional compilations in filesystem 2019-12-03 19:10:07 +01:00
qPCR4vir
2fd8b28d4e update Readme 2019-12-03 19:09:36 +01:00
Jinhao
beba9d29d5 Merge branch 'qPCR4vir-filesystem' into hotfix-1.7.2 2019-12-04 01:10:24 +08:00
Jinhao
d2ce5fafd2 Merge branch 'filesystem' of https://github.com/qPCR4vir/nana into qPCR4vir-filesystem 2019-12-04 01:09:55 +08:00
Jinhao
d78157efba Merge branch 'mihaizh-fix-tabbar-erase-refresh' into hotfix-1.7.2 2019-12-04 00:28:40 +08:00
Jinhao
139c884ea9 Merge branch 'fix-tabbar-erase-refresh' of https://github.com/mihaizh/nana into mihaizh-fix-tabbar-erase-refresh 2019-12-04 00:27:17 +08:00
Jinhao
948022e304 fix any forward inlude issue 2019-11-17 01:27:20 +08:00
Jinhao
36a17566ca Merge branch 'ErrorFlynn-hotfix-1.7' into hotfix-1.7.2 2019-11-17 01:24:19 +08:00
Jinhao
6353a1909b Merge branch 'hotfix-1.7' of https://github.com/ErrorFlynn/nana into ErrorFlynn-hotfix-1.7 2019-11-17 01:23:50 +08:00
qPCR4vir
0e7261228c don't reuse variable! 2019-11-06 11:00:19 +01:00
qPCR4vir
5438b4ee28 using nana-demo hotfix 2019-11-05 21:33:29 +01:00
qPCR4vir
bd70254223 using std filesystem 2019-11-05 21:08:28 +01:00
qPCR4vir
a8b5e92947 using nana filesystem 2019-11-05 21:00:33 +01:00
qPCR4vir
3eee1f76b9 inline nana::filesystem 2019-11-05 19:43:01 +01:00
qPCR4vir
597f6c05cd inline boost::filesystem into std::filesystem 2019-11-05 19:29:30 +01:00
qPCR4vir
babcdb477d check_cxx_source_compiles FILESYSTEM 2019-11-05 19:25:14 +01:00
qPCR4vir
25353e4325 reorganize priorities 2019-11-05 19:23:50 +01:00
ErrorFlynn
6c547276ec
bug fix: nana::drawerbase::listbox::essence::where
This method incorrectly calculates the position of checkboxes in the listbox content area. It uses the formula `new_where.second * item_h + header_visible_px()` to calculate the number of pixels between the top of the viewport and a checkbox.

The problem is that when the first visible item is only partially visible, `new_where.second * item_h` produces an excess of pixels equal to the vertical segment of the first visible item that is not in the viewport. This excess value produces a downward displacement of the calculated checkbox position, so it must be accounted for in the aforementioned formula.

This problem occurs because at some point, the library switched from scrolling in item-sized increments to smooth scrolling (in older versions, it used to be that it was impossible for an item to be only partially visible).

Relevant thread: http://nanapro.org/en-us/forum/index.php?u=/topic/1227/ggnana-listbox-with-a-check-box-for-each-list-item#post-3359
2019-10-05 11:19:42 -04:00
Jinhao
2234d06bea fix issue graphics::gradual_rectangle off by one(#475) 2019-09-23 01:47:36 +08:00
ErrorFlynn
59d3a68485
item_proxy bug fix: postfix increment operator
The behavior of the postfix increment operator is not consistent with the increment operator concept (currently just returns the next sibling node).
2019-09-20 23:38:09 -04:00
ErrorFlynn
e626f816b3
nana::any bug fix - argument not forwarded
A constructor and an overload of the assignment operator each have a forwarding reference as a parameter, but they don't actually forward the argument.
2019-09-16 06:07:04 -04:00
Zaha Mihai
35dadaeab6
Fix tabbar drawing not updated when tab is erased
When a tab is deleted using `tabbar::erase`, `trigger::erase` is called. This function does not call `API::refresh_window` if the tab was erased successfully (unlike `trigger::tab_color`, `trigger::tab_image`, etc.), thus the tab is still visible until an interaction is made (like mouse click on `tabbar`).
2019-09-15 23:32:58 +03:00
Jinhao
2c54714646 fix crash that could occur when calling pixel_buffer::put with rgb24 2019-09-12 05:34:49 +08:00
Jinhao
1e65dd8d66 Merge branch 'qPCR4vir-hotfix-1.7.2' into hotfix-1.7.2 2019-09-11 00:51:41 +08:00
Jinhao
0bd0c1f362 Merge branch 'hotfix-1.7.2' of https://github.com/qPCR4vir/nana into qPCR4vir-hotfix-1.7.2 2019-09-11 00:51:03 +08:00
Jinhao
eba4f2eb03 Merge branch 'besh81-hotfix-1.7.2' into hotfix-1.7.2 2019-09-11 00:48:21 +08:00
Jinhao
7082456330 Merge branch 'hotfix-1.7.2' of https://github.com/besh81/nana into besh81-hotfix-1.7.2 2019-09-11 00:46:39 +08:00
Jinhao
0f66b0cb26 improve wait of x11 event to avoid blocking 2019-09-11 00:10:11 +08:00
Jinhao
02676e9c75 fix missing weakly_canonical on GCC 7.3 2019-09-11 00:07:07 +08:00
qPCR4vir
06ba591b66 FIX old bug during resizing of header, when next column spring to second position 2019-09-09 17:23:22 +02:00
besh81
4dd1c0c7ef dock_pane and toolbar bug fix
fixed bug in dock_pane caption drawing function (used a workaround that hide the caption when the dock_pane width become too small)
fixed small bug in toolbar
2019-09-05 17:37:40 +02:00
Jinhao
e6b0332bad Merge branch 'mihaizh-fix_filebox_multi_select' into hotfix-1.7.2 2019-09-02 05:41:39 +08:00
Jinhao
12e15ce956 Merge branch 'fix_filebox_multi_select' of https://github.com/mihaizh/nana into mihaizh-fix_filebox_multi_select 2019-09-02 05:27:01 +08:00
Jinhao
66d038dbe3 small improvement 2019-09-02 05:24:06 +08:00
Jinhao
8cbadb70ff Merge branch 'dnso86-dnso86-patch-wc2mb' into hotfix-1.7.2 2019-09-02 05:05:48 +08:00
Jinhao
fbeb8caf1f Merge branch 'dnso86-patch-wc2mb' of https://github.com/dnso86/nana into dnso86-dnso86-patch-wc2mb 2019-09-02 05:03:03 +08:00
Jinhao
cdc7067659 Merge branch 'loaden-apple-fix' into hotfix-1.7.2 2019-09-01 23:09:44 +08:00
Jinhao
c86b64db0a Merge branch 'apple-fix' of https://github.com/loaden/nana into loaden-apple-fix 2019-09-01 23:09:30 +08:00
Jinhao
bb6963e588 Merge branch 'loaden-hotfix-1.7.2' into hotfix-1.7.2 2019-09-01 23:07:39 +08:00
Jinhao
852ac81a70 Merge branch 'hotfix-1.7.2' of https://github.com/loaden/nana into loaden-hotfix-1.7.2 2019-09-01 23:07:18 +08:00
Zaha Mihai
7c442360ba
Fix inconsistency regarding filebox multi_select
When only one file is selected, the lpstrFile variable contains only the path to that file, without the parent path before that, thus, the targets vector is empty and the path variable contains the actual path to the file. This is inconsistent with the scenario where multiple files are selected, in which targets contains the file paths and path contains the parent directory path.
2019-09-01 17:53:23 +03:00
Jinhao
8323064efc improve the timer that it can be deleted in elapse handler 2019-09-01 18:49:19 +08:00
dnso86
6d625a11e0
Fixing incorrect buffer in MultiByteToWideChar call in wc2mb 2019-08-30 14:27:49 +02:00
dnso86
942c6a4b48
Fixing incorrect buffer in WideCharToMultiByte call in wc2mb 2019-08-28 10:42:10 +02:00