dialog/scores/support.c
/* This is an internally used function to find pixmap files. */
This is an internally used function to find pixmap files.
This is an internally used function to find pixmap files .
static gchar*
find_pixmap_file(const gchar     *filename)
{
	GList *elem;
	elem = pixmaps_directories;
	while (elem)
	{
		gchar *pathname = g_strdup_printf("%s%s%s", (gchar*)elem->data,
		                                  G_DIR_SEPARATOR_S, filename);
		if (g_file_test(pathname, G_FILE_TEST_EXISTS))
			return pathname;
		g_free(pathname);
		elem = elem->next;
	}
	return NULL;
}
static gchar * find_pixmap_file ( const gchar * filename ) { GList * elem ; elem = pixmaps_directories ; while ( elem ) { gchar * pathname = g_strdup_printf ( " " , ( gchar * ) elem -> data , G_DIR_SEPARATOR_S , filename ) ; if ( g_file_test ( pathname , G_FILE_TEST_EXISTS ) ) return pathname ; g_free ( pathname ) ; elem = elem -> next ; } return NULL ; }
This is an internally used function to find pixmap files.
This is an internally used function to find pixmap files .
/* We step through each of the pixmaps directory to find it. */