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

Still can't figure this 1 out



I have an array GtkWidget *project_forms[1000]; an int numof_forms; - in
main() i set numof_forms=0; i have 1 function that creates a new window
(project_forms[numof_forms]=gtk_window_new(..); - then i connect the
focus_in_event to project_forms[numof_forms]; then numof_forms++; - in the
focus_in_event callback, i check to see which window has focus so that i can
set another windows title accordingly - i do int x; for(x=0;x<numof_forms;x++)
- if(GTK_WIDGET_HAS_FOCUS(project_forms[x]) ) { .. } - the app crashes here -
numof_forms, and project_forms[] are both global



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