2010-10-17 13:48:02 +02:00
|
|
|
#include <hildon/hildon.h>
|
2010-10-19 01:28:46 +02:00
|
|
|
#include <stdlib.h>
|
2010-10-17 13:48:02 +02:00
|
|
|
#include "interface.h"
|
2010-10-21 21:00:26 +02:00
|
|
|
#include "eom.h"
|
2010-10-19 01:28:46 +02:00
|
|
|
|
2010-10-21 21:00:26 +02:00
|
|
|
gchar *eom_get_data_file(void)
|
2010-10-19 01:28:46 +02:00
|
|
|
{
|
|
|
|
static gchar *filedir = NULL;
|
|
|
|
|
|
|
|
if (filedir == NULL) {
|
2010-10-21 21:00:26 +02:00
|
|
|
filedir = g_strdup_printf("%s/eye-on-manga.db",
|
|
|
|
eom_get_config_dir());
|
2010-10-19 01:28:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return filedir;
|
|
|
|
}
|
|
|
|
|
2010-10-21 21:00:26 +02:00
|
|
|
gchar *eom_get_config_dir(void)
|
2010-10-19 01:28:46 +02:00
|
|
|
{
|
|
|
|
static gchar *filedir = NULL;
|
|
|
|
|
|
|
|
if (filedir == NULL) {
|
2010-10-21 21:00:26 +02:00
|
|
|
filedir = g_strdup_printf("%s/.eom", getenv("HOME"));
|
2010-10-19 01:28:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return filedir;
|
|
|
|
}
|
2010-10-17 13:48:02 +02:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
hildon_gtk_init(&argc, &argv);
|
|
|
|
|
2010-10-21 21:00:26 +02:00
|
|
|
g_set_application_name("Eye on Manga");
|
2010-10-17 13:48:02 +02:00
|
|
|
|
|
|
|
interface_show_main_window();
|
|
|
|
|
|
|
|
gtk_main();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|