pike.git / src / post_modules / GTK2 / make_example_image.pike

version» Context lines:

pike.git/src/post_modules/GTK2/make_example_image.pike:32:    werror("Image dimensions are 0x0!\n");    exit(1);    }    i->grab( w, 20,20, geom->width-40, geom->height-40);    tags(Image.PNG.encode(Image.PNM.decode(i->get_pnm())));    exit(0);   }      void got_size_alloc( mixed a, mixed b, object e )   { -  geom = (mapping)b[0]; +  if (arrayp(b)) b = b[0]; +  geom = (mapping)b;   }      void got_event( mixed a, mixed b, object e )   {    call_out(grab, 0.1, w );   }      void show_recursively(object|mapping w)   {    if(mappingp(w) && w->widget)