Remove warnings and dupe code

This commit is contained in:
Andy Williams 2017-01-15 13:04:36 +00:00 committed by Marcel Hollerbach
parent 9d4a263b81
commit 39368a041b
3 changed files with 7 additions and 10 deletions

View File

@ -25,7 +25,7 @@ _extra_win_del(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
}
static void
_extra_win_sync_done_cb(void *data)
_extra_win_sync_done_cb(void *data EINA_UNUSED)
{
Evas_Object *new_view;

View File

@ -116,7 +116,8 @@ _set_as_default(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_
static void
_popup_theme(Evas_Object *win, Extra_Theme *theme)
{
Evas_Object *o, *inwin, *table, *title, *author, *description, *install, *icon;
Evas_Object *o, *inwin, *table;
Evas_Object *install = NULL, *icon = NULL;
char title_str[1024], author_str[1024];
snprintf(title_str, sizeof(title_str), "<title>%s</title>", theme->name);
@ -134,7 +135,7 @@ _popup_theme(Evas_Object *win, Extra_Theme *theme)
evas_object_event_callback_add(inwin, EVAS_CALLBACK_MOUSE_UP, _detail_preview_del, o);
title = o = elm_label_add(inwin);
o = elm_label_add(inwin);
elm_object_text_set(o, title_str);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(o, 0.0, EVAS_HINT_FILL);
@ -183,7 +184,7 @@ _popup_theme(Evas_Object *win, Extra_Theme *theme)
evas_object_show(o);
elm_table_pack(table, o, 0, 1, 2, 1);
author = o = elm_entry_add(inwin);
o = elm_entry_add(inwin);
elm_object_text_set(o, author_str);
elm_entry_editable_set(o, EINA_FALSE);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);
@ -191,7 +192,7 @@ _popup_theme(Evas_Object *win, Extra_Theme *theme)
evas_object_show(o);
elm_table_pack(table, o, 0, 2, 2, 1);
description = o = elm_entry_add(inwin);
o = elm_entry_add(inwin);
elm_entry_editable_set(o, EINA_FALSE);
elm_object_text_set(o, theme->description);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, 0.0);

View File

@ -568,10 +568,6 @@ extra_theme_default_get(Extra_Theme *t)
return (items > 1);
}
#define GEN_FILE_NAME(buf, t) eina_strbuf_append_printf(buf, "%s-%d.edj", t->id, t->version);
EAPI Eina_Bool
extra_theme_installed_old(Extra_Theme *t)
{
@ -601,4 +597,4 @@ extra_theme_installed_old(Extra_Theme *t)
eina_list_free(files);
eina_strbuf_free(buf);
return b;
}
}