problem: gtk_image gives critical error
- From: Deependra Shekhawat <openbysource yahoo co in>
- To: Gtk developers <gtk-app-devel-list gnome org>
- Subject: problem: gtk_image gives critical error
- Date: Tue, 18 Apr 2006 03:05:51 -0700 (PDT)
Hello friends,
This is my code:
struct splash
{
GtkWidget *splash_image;
};
void func1(void)
{
GtkWidget *img;
struct splash p;
img=gtk_image_new();
p.splash_image=img;
g_signal_connect(G_OBJECT(button1),
"clicked",
G_CALLBACK(on_butt_clicked),
(gpointer) &p);
}
void on_butt_clicked(GtkButton *button,gpointer data)
{
struct splash *ptr;
ptr=(struct splash *)data;
//some code is here
//following line gives error at execution time.
gtk_image_set_from_pixbuf(GTK_IMAGE((GtkWidget*)ptr->splash_image),buffer);
}
Error is:
(splash_screen:3549): Gtk-CRITICAL **: file
gtkimage.c: line 772 (gtk_image_set_from_pixbuf):
assertion `GTK_IS_IMAGE (image)' failed
Please help !
Regards
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]