Re: Question about put "GtkWidget" pointer as function's argument

2006-07-17 Thread chao yeaj
Sorry,my code should be this : other_function(GtkWidget * splash); not other_function( ) I made a mistake at the first time, sorry! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-a

Re: Question about put "GtkWidget" pointer as function's argument

2006-07-16 Thread Christopher Backhouse
chao yeaj wrote: > splash = frame;/* Here, the splash is not NULL*/ splash is a local variable. if you want to assign to the data at the pointer: *splash=frame ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Question about put "GtkWidget" pointer as function's argument

2006-07-16 Thread chao yeaj
Hello everyone My code like this: int create_image_from_file(GtkWidget *splash) { GtkWidget image = NULL; GtkWidget frame = NULL; image = gtk_image_new_from_file("~/splash.png"); frame = g