[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
tracking window focus
- From: "Matt M." <matt boda virtualave net>
- To: gtk-app-devel-list redhat com
- Subject: tracking window focus
- Date: Sun, 24 Oct 1999 12:53:24 -0700
I have an array GtkWidget *form_windows[1000]. I have an int
numof_projectforms=0. I have 1 function that creates new windows when a menu
item is clicked. numof_projectforms gets incremented each time. Then, i need to
find out which window in the array has focus, so i run through a loop (for
(x=0;x<numof_projectforms;x++) { if(GTK_WIDGET_HAS_FOCUS(project_forms[x]) ) {
..}
For some reason, no matter how many windows are open, and which 1 has focus, it
thinks that window[0] has focus. numof_projectforms is keeping it's value
globally (i echo it in the loop and when the windows are created).
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]