Mercurial > dwib
changeset 363:4b43fa91f4b1
Fix a problem where tree signal handlers were being connected to the wrong
window handle. This change breaks the pack before operating rule, but
hopefully this will work on all platforms.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Sun, 10 Jul 2022 07:33:55 -0500 |
parents | 04e182c54dc5 |
children | b51d85259668 |
files | dwib.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dwib.c Sun Jul 10 07:15:37 2022 -0500 +++ b/dwib.c Sun Jul 10 07:33:55 2022 -0500 @@ -7769,6 +7769,9 @@ item = dw_tree_new(0); dw_window_set_data(hwndToolbar, "treeview", DW_POINTER(item)); + dw_signal_connect(item, DW_SIGNAL_ITEM_SELECT, DW_SIGNAL_FUNC(tree_select), NULL); + dw_signal_connect(item, DW_SIGNAL_ITEM_CONTEXT, DW_SIGNAL_FUNC(tree_context), NULL); + #ifdef DWIB_MULTI_WINDOW dw_box_pack_start(vbox, item, 1, 1, TRUE, TRUE, 0); @@ -7780,9 +7783,6 @@ dw_splitbar_set(item, ((float)DWIB_WINDOW_WIDTH / ((float)DWIB_PROPERTIES_EXTRA + (float)DWIB_WINDOW_WIDTH)) * 100.0); #endif - dw_signal_connect(item, DW_SIGNAL_ITEM_SELECT, DW_SIGNAL_FUNC(tree_select), NULL); - dw_signal_connect(item, DW_SIGNAL_ITEM_CONTEXT, DW_SIGNAL_FUNC(tree_context), NULL); - properties_none(); #ifdef DWIB_MULTI_WINDOW dw_signal_connect(hwndToolbar, DW_SIGNAL_SET_FOCUS, DW_SIGNAL_FUNC(toolbar_focus), NULL);