42#define THROBBER_FRAMES 9
43#define THROBBER_FMT "throbber/throbber%d.png"
53 throb = malloc(
sizeof(*throb));
71 NSLOG(netsurf, INFO,
"%s", resname);
77 "Insufficent number of frames (%d) in throbber animation.",
nserror
Enumeration of error codes.
@ NSERROR_INIT_FAILED
Initialisation failed.
@ NSERROR_BAD_SIZE
Bad size.
@ NSERROR_INVALID
Invalid data.
@ NSERROR_NOMEM
Memory exhaustion.
nserror nsgtk_throbber_init(void)
Initialise global throbber context.
nserror nsgtk_throbber_get_frame(int frame, GdkPixbuf **pixbuf)
get the pixbuf of a given frame of the throbber
void nsgtk_throbber_finalise(void)
release global throbber context
#define NSLOG(catname, level, logmsg, args...)
nserror nsgdk_pixbuf_new_from_resname(const char *resname, GdkPixbuf **pixbuf_out)
Create gdk pixbuf for the named ui resource.
Interface to gtk builtin resource handling.
int nframes
Number of frames in the throbber.