I tried to do:

gtk_button_set_image(GTK_BUTTON(theButton), ImageOne);
ImageOne = g_object_ref(ImageOne);
gtk_button_set_image(GTK_BUTTON(theButton), ImageOne);
gtk_button_set_image(GTK_BUTTON(theButton), ImageTwo);
But it doesn't work !
Thanks .



> Message du 15/11/06 15:57
> De : "Tristan Van Berkom" 
> A : "Guillaume Charhon" 
> Copie à : "Ed Catmur" , gtk-app-devel-list@gnome.org
> Objet : Re: Change an image on a button
> 
> Guillaume Charhon wrote:
> > Thanks, but how can I "ref it or sink it" ?
> > 
> Every widget in gtk+ is an object:
> http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#GObject
> 
> 
> Cheers,
> -Tristan
> ---------------------------------------------------------------------------------------
> Orange vous informe que cet e-mail a ete controle par l'anti-virus mail. 
> Aucun virus connu a ce jour par nos services n'a ete detecte.
> 
> 
> 
>
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to