pike.git / src / post_modules / GTK2 / source / gdkpixbufanimation.pre

version» Context lines:

pike.git/src/post_modules/GTK2/source/gdkpixbufanimation.pre:1: - /* -*- C -*- */ +    not gtk_beta; -  +    class GDK2.PixbufAnimation;   inherit G.Object;      //! The GdkPixbufAnimation object. Holds animations, like gifs.      void create(string filename)   //! Create a new PixbufAnimation.   {    pgtk_verify_not_inited();    pgtk_verify_setup();    {    const char *filename; -  +  GdkPixbufAnimation *gpa;    GError *error=NULL;    get_all_args("create",args,"%s",&filename); -  +  gpa=gdk_pixbuf_animation_new_from_file(filename,&error);    my_pop_n_elems(args); -  THIS->obj=G_OBJECT(gdk_pixbuf_animation_new_from_file(filename,&error)); -  if (THIS->obj==NULL) +  if (gpa==NULL)    Pike_error("Unable to load file %s: %s\n",filename,error->message); -  +  THIS->obj=G_OBJECT(gpa);    }    pgtk__init_this_object();   }      int get_width();   //! Returns the width of the bounding box.      int get_height();   //! Returns the height of the bounding box.   
pike.git/src/post_modules/GTK2/source/gdkpixbufanimation.pre:55:   //! If the file turns out to be a plain, unanimated image, this function will   //! return true. Use get_static_image() to retrieve the image.      GDK2.Pixbuf get_static_image();   //! If an animation is really just a plain image (has only one frame), this   //! function returns that image. If the animation is an animation, this   //! function returns reasonable thing to display as a static unanimated image,   //! which might be the first frame, or something more sophisticated. If an   //! animation hasn't loaded any frames yet, this function will return 0.    -  +    endnot;