eye-on-manga/src/collections.c

41 lines
698 B
C
Raw Normal View History

2010-10-17 13:48:02 +02:00
#include <hildon/hildon.h>
#include <stdlib.h>
2010-10-17 13:48:02 +02:00
#include "interface.h"
#include "collections.h"
gchar *collections_get_data_file(void)
{
static gchar *filedir = NULL;
if (filedir == NULL) {
filedir = g_strdup_printf("%s/collections.db",
collections_get_config_dir());
}
return filedir;
}
gchar *collections_get_config_dir(void)
{
static gchar *filedir = NULL;
if (filedir == NULL) {
filedir = g_strdup_printf("%s/.collections", getenv("HOME"));
}
return filedir;
}
2010-10-17 13:48:02 +02:00
int main(int argc, char *argv[])
{
hildon_gtk_init(&argc, &argv);
g_set_application_name("Collections");
interface_show_main_window();
gtk_main();
return 0;
}