diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2008-08-13 13:44:10 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2008-08-13 13:44:10 +0000 |
commit | 783cb293317e71ab69c3e0c55781a132effb30cd (patch) | |
tree | ccd898272c8bbf61f26f82868539ddc6a9bbeed8 | |
parent | 91bf96fabf6287f23ec1172b78842afb801259cc (diff) | |
download | netsurf-783cb293317e71ab69c3e0c55781a132effb30cd.tar.gz netsurf-783cb293317e71ab69c3e0c55781a132effb30cd.tar.bz2 |
Do not include GIF throbber loading support if GIF support is excluded
svn path=/trunk/netsurf/; revision=5084
-rw-r--r-- | gtk/gtk_throbber.c | 5 | ||||
-rw-r--r-- | gtk/gtk_throbber.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtk_throbber.c b/gtk/gtk_throbber.c index 9070c61ba..0ccd89b5f 100644 --- a/gtk/gtk_throbber.c +++ b/gtk/gtk_throbber.c @@ -20,7 +20,9 @@ #include <stdio.h> #include <stdlib.h> #include <stdarg.h> +#ifdef WITH_GIF #include <libnsgif.h> +#endif #include "utils/log.h" #include "gtk/gtk_throbber.h" #include "gtk/gtk_bitmap.h" @@ -94,6 +96,7 @@ bool nsgtk_throbber_initialise_from_png(const int frames, ...) * \param fn Filename of GIF to use. It must have at least two frames. * \return true on success. */ +#ifdef WITH_GIF bool nsgtk_throbber_initialise_from_gif(const char *fn) { /* disect the GIF provided by filename in *fn into a series of @@ -212,6 +215,7 @@ bool nsgtk_throbber_initialise_from_gif(const char *fn) return true; } +#endif void nsgtk_throbber_finalise(void) { @@ -225,3 +229,4 @@ void nsgtk_throbber_finalise(void) nsgtk_throbber = NULL; } + diff --git a/gtk/gtk_throbber.h b/gtk/gtk_throbber.h index a98a5c5eb..b7d3d8804 100644 --- a/gtk/gtk_throbber.h +++ b/gtk/gtk_throbber.h @@ -29,7 +29,9 @@ struct nsgtk_throbber extern struct nsgtk_throbber *nsgtk_throbber; +#ifdef WITH_GIF bool nsgtk_throbber_initialise_from_gif(const char *fn); +#endif bool nsgtk_throbber_initialise_from_png(const int frames, ...); void nsgtk_throbber_finalise(void); |