billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=1ad8055d286c1ca5f5f0b74accf90a4aebcb7a4b

commit 1ad8055d286c1ca5f5f0b74accf90a4aebcb7a4b
Author: Boris Faure <bill...@gmail.com>
Date:   Thu Jun 11 22:28:20 2015 +0200

    remove useless termio_theme_get()
---
 src/bin/termio.c | 8 --------
 src/bin/termio.h | 1 -
 src/bin/win.c    | 2 +-
 3 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/src/bin/termio.c b/src/bin/termio.c
index b44e01c..f924a5b 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -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)
 {
diff --git a/src/bin/termio.h b/src/bin/termio.h
index 56dfeb7..f01118f 100644
--- a/src/bin/termio.h
+++ b/src/bin/termio.h
@@ -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);
diff --git a/src/bin/win.c b/src/bin/win.c
index 6a99c6e..8b6b5c9 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -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!");

-- 


Reply via email to