summaryrefslogtreecommitdiff
path: root/ldmicro/maincontrols.cpp
diff options
context:
space:
mode:
authorRr422018-06-25 14:02:19 +0530
committerRr422018-06-25 14:02:19 +0530
commitac8a6d77801b438a298f537969ed1bd2f60e9458 (patch)
treeae76e8e0e397d476e2b7c6a04733923f1aca7844 /ldmicro/maincontrols.cpp
parent64c5d19d9febf624c6e5e7f586b781ee66097761 (diff)
downloadLDMicroGtk-ac8a6d77801b438a298f537969ed1bd2f60e9458.tar.gz
LDMicroGtk-ac8a6d77801b438a298f537969ed1bd2f60e9458.tar.bz2
LDMicroGtk-ac8a6d77801b438a298f537969ed1bd2f60e9458.zip
Added functionality to update IoList table under the paint window.
Diffstat (limited to 'ldmicro/maincontrols.cpp')
-rw-r--r--ldmicro/maincontrols.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/ldmicro/maincontrols.cpp b/ldmicro/maincontrols.cpp
index 4f04a17..ff68860 100644
--- a/ldmicro/maincontrols.cpp
+++ b/ldmicro/maincontrols.cpp
@@ -947,7 +947,7 @@ void RefreshControlsToSettings(void)
{
GtkTreeIter iter;
BOOL path_not_empty = gtk_tree_model_get_iter_first (GTK_TREE_MODEL(IoList), &iter);
- g_print("path e = %i\n", path_not_empty);
+ // g_print("path e = %i\n", path_not_empty);
int * ip;
int i = 0;
@@ -970,9 +970,16 @@ void RefreshControlsToSettings(void)
gtk_list_store_clear (GTK_LIST_STORE(IoList));
+ /// Fill IO List
+ NMHDR h;
+ h.code = LVN_GETDISPINFO;
+ h.hlistFrom = IoList;
+
for(i = 0; i < Prog.io.count; i++) {
gtk_list_store_append (GTK_LIST_STORE(IoList), &iter);
-
+ h.item.iItem = i;
+ h.hlistIter = &iter;
+ IoListProc(&h);
}
if(IoListSelectionPoint >= 0) {