Problem solved! : As I viewed first time an image with gtk_image_new_from_pixbuf, when I tried to change that image later after pushing a button, nothing happened, but by using gtk_image_set_from_pixbuf instead, the image changes to the new one (no need to use expose_event at all)
Thank you 2007/5/23, Luis Ramirez <[EMAIL PROTECTED]>: > > Thank you all!. I will try to re-read the Gtk docs following your advice > and I will look for the"Scribble" sample. > > Luis > > 2007/5/20, David Nečas (Yeti) < [EMAIL PROTECTED]>: > > > > On Sun, May 20, 2007 at 08:39:43PM +0200, Cédric Lucantis wrote: > > > Le dimanche 20 mai 2007 17:45, Luis Ramirez a écrit: > > > > > > It looks like you are confusing GdkPixbuf and GtkPixbuf. A GdkPixbuf > > is not a > > > widget but only an object storing a bitmap, while a GtkPixbuf is a > > widget > > > displaying a GdkPixbuf. Anyway, GtkPixbuf is deprecated so you should > > use > > > GtkImage instead. > > > > I'm not sure this cleared all the confusion as GtkPixbuf > > does not exist. The deprecated widget is called GtkPixmap > > (and there's really no reason to use it) (and there's also > > GdkPixmap which is a completely different beast). To sum it > > up: > > > > GdkPixbuf -- RGB[A] pixel buffer, used for basic image data > > representation and manipulation. > > GdkPixmap -- off-screen drawable, i.e. off-screen relative > > of GdkWindow (both are GdkDrawables). > > GtkPixbuf -- does not exist. > > GtkPixmap -- deprecated widget, use GtkImage instead. > > > > Yeti > > > > -- > > http://gwyddion.net/ > > _______________________________________________ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list