Right click popup on ctree/clist
- From: Markus Lausser <sgop users sourceforge net>
- To: gtk-app-devel-list gnome org
- Subject: Right click popup on ctree/clist
- Date: Fri, 6 Jul 2001 01:38:27 +0200
Hello.
I have a general problem. WHat is the best solution for the following
problem:
I want a right click popup on a clist/ctree entry. After activating a item
in the popup the according callback should act on the entry clicked.
The problem is: between right click and activating the entry the contents of
the clist/ctree could have changed, the entry even could be non
existent then.
At the moment i do it like this: saving the clist widget and row in a global
var, and using these information in the callbacks, no matter what changes
were made to the clist after saving this stuff. And as expected: sometimes
the callbacks use the wrong clist entry..sometimes even a row number, that
does not exist anymore.
Does anyone know a _good_ solution?
The solution should be independent of existing data attached to the rows.
What i mean is: sometimes there is data attached sometimes there is not.
Thanks in advance.
Markus.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]