gtkmm and c++...help! please



Hello, I'm trying to make like a file manager, I have two TreeViews, on for the directories and the other for 
the files, I have 4 files (dir.h / dir.cc and files.h /files.cc), the dir.h has the class for the TreeView 
that handdlers the directories and the files.h the class for the other TreeView (the files). 

That's ok right?? well the problem is that I need to control the clicks (selection) of the directory to list 
the files in the files in the other widget, so in the dir.cc file I have the signal handler for the 
selection, and this calls a function (in dir.cc), the problem is that I need to write into the TreeView that 
is in files.h, I also create a method in files.h that modify the rows and then I call that method from dir.c, 
but didn't work, I'm doing something like:

myfileclass instance;
instance.changesomething("thetexttochange");

that code is inside the function that is called with the signal handler, but nothings happens to the file 
TreeView... 

I know that my problem is more C++ than gtkmm any suggestion will be appreciated...

Thanx



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]