Move flag icon to include file

Just like with the satellite icon we are creating a pixdata structure for
the flag.

The Makefile cleanup in commit df6a9ddd8a21 ("Auto-generate C file
dependencies, and make the build more quiet") removed the rules for
generating the .h file by mistake (I hope).

This adds a more generic rule back in and also makes sure that the data
structures get more useful names.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-02-01 17:25:41 +11:00
parent 393c88f087
commit cf3c0266c2
5 changed files with 93 additions and 4 deletions

View file

@ -870,7 +870,7 @@ static void get_suit(struct dive *dive, char **str)
GdkPixbuf *get_gps_icon(void)
{
return gdk_pixbuf_from_pixdata(&my_pixbuf, TRUE, NULL);
return gdk_pixbuf_from_pixdata(&satellite_pixbuf, TRUE, NULL);
}
static GdkPixbuf *get_gps_icon_for_dive(struct dive *dive)