remove useless termio_theme_get()

This commit is contained in:
Boris Faure 2015-06-11 22:28:20 +02:00
parent 5d6544ed76
commit 1ad8055d28
3 changed files with 1 additions and 10 deletions

View File

@ -302,14 +302,6 @@ termio_theme_set(Evas_Object *obj, Evas_Object *theme)
if (theme) sd->theme = theme;
}
Evas_Object *
termio_theme_get(Evas_Object *obj)
{
Termio *sd = evas_object_smart_data_get(obj);
EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL);
return sd->theme;
}
void
termio_mouseover_suspend_pushpop(Evas_Object *obj, int dir)
{

View File

@ -10,7 +10,6 @@
Evas_Object *termio_add(Evas_Object *parent, Config *config, const char *cmd, Eina_Bool login_shell, const char *cd, int w, int h, Term *term);
void termio_win_set(Evas_Object *obj, Evas_Object *win);
void termio_theme_set(Evas_Object *obj, Evas_Object *theme);
Evas_Object *termio_theme_get(Evas_Object *obj);
char *termio_selection_get(Evas_Object *obj,
int c1x, int c1y, int c2x, int c2y,
size_t *len, Eina_Bool right_trim);

View File

@ -2685,7 +2685,7 @@ void change_theme(Evas_Object *win, Config *config)
EINA_LIST_FOREACH(terms, l, term)
{
Evas_Object *edje = termio_theme_get(term->termio);
Evas_Object *edje = term->bg;
if (!theme_apply(edje, config, "terminology/background"))
ERR("Couldn't find terminology theme!");