summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <o.schinagl@ultimaker.com>2015-05-18 14:01:44 (GMT)
committerOlliver Schinagl <o.schinagl@ultimaker.com>2015-05-18 14:02:26 (GMT)
commit65287557846ee845a1f0d4eb78a11af9139aaa0d (patch)
treee210e5f0be20bac863a8ff888541872a0954bbeb
parente24fdd22d7d380ed39aac8a9089c2549a4d4caa5 (diff)
downloadeulogium-65287557846ee845a1f0d4eb78a11af9139aaa0d.zip
eulogium-65287557846ee845a1f0d4eb78a11af9139aaa0d.tar.gz
eulogium-65287557846ee845a1f0d4eb78a11af9139aaa0d.tar.bz2
[griffin.display] Creating an initial list is not needed
Initially I made mount->mounts (the self list pointing pointer) an Eina_List *, and while this worked, it was wrong. It also required to have a dummy first entry to actually create the list so we could pass it around properly. The proper fix was to use a pointer to the Eina_List, and with the proper use the initial entry is no longer needed and thus no strange things need to be created around it to deal with the sentinel. Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
-rw-r--r--src/eulogium.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/eulogium.c b/src/eulogium.c
index 40ffe49..b00a695 100644
--- a/src/eulogium.c
+++ b/src/eulogium.c
@@ -1127,16 +1127,10 @@ Evas_Object *eulogium_main_menu(Evas_Object *window, struct eulogium_data *eulog
static void eulogium_setup(struct eulogium_data *eulogium)
{
- struct mount_data *mount;
-
while (screen_data.screen[screen_data.count].type != END)
screen_data.count++;
- /* eina_list_append() appends data to an existing list, or creates a new list. We need to know the location
- * of the list beforehand and thus we need to create a list with a dummy entry */
- mount = calloc(1, sizeof(struct mount_data));
- mount->id = "sentinel";
- eulogium->mounts = eina_list_append(NULL, mount);
+ eulogium->mounts = NULL;
eulogium->progress_data_refresh = NULL;
eulogium->print.name = NULL;
eulogium->print.file = NULL;