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

Re: Still can't figure this 1 out



Ok got this 1 figured out. I was incrementing numof_forms again before i
created the window, so 0,2,4, etc were not being created.

On Sat, 23 Oct 1999, Matt M. wrote:
> 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
> 
> 
> -- 
>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com with 
>                        "unsubscribe" as the Subject.
> 
> 	Mailing list concerns should be mailed to <listmaster@redhat.com>



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