summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2020-08-29 18:38:11 +0200
committerBoris Faure <billiob@gmail.com>2020-08-29 18:38:11 +0200
commit214c72eb0c5a836fa38b5e2d56e820e477af1254 (patch)
treebf80cf15528f99d6c06a20ebbd58aee811823185
parent04248e9af30cdeab3a3f450502e46c4f5223ac36 (diff)
win: use theme_apply_elm on elm_layout
-rw-r--r--src/bin/win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index 594cfc5..bf1ba42 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -5900,7 +5900,7 @@ void change_theme(Evas_Object *win, Config *config)
5900 { 5900 {
5901 Evas_Object *edje = term->bg_edj; 5901 Evas_Object *edje = term->bg_edj;
5902 5902
5903 if (!theme_apply(edje, config, "terminology/background")) 5903 if (!theme_apply_elm(term->bg, config, "terminology/background"))
5904 ERR("Couldn't find terminology theme!"); 5904 ERR("Couldn't find terminology theme!");
5905 colors_term_init(termio_textgrid_get(term->termio), edje, config); 5905 colors_term_init(termio_textgrid_get(term->termio), edje, config);
5906 termio_config_set(term->termio, config); 5906 termio_config_set(term->termio, config);
@@ -7377,7 +7377,7 @@ term_new(Win *wn, Config *config, const char *cmd,
7377 term->bg_edj = elm_layout_edje_get(term->bg); 7377 term->bg_edj = elm_layout_edje_get(term->bg);
7378 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 7378 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
7379 evas_object_size_hint_fill_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 7379 evas_object_size_hint_fill_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
7380 if (!theme_apply(o, config, "terminology/background")) 7380 if (!theme_apply_elm(o, config, "terminology/background"))
7381 { 7381 {
7382 CRITICAL(_("Couldn't find terminology theme! Forgot 'ninja install'?")); 7382 CRITICAL(_("Couldn't find terminology theme! Forgot 'ninja install'?"));
7383 evas_object_del(term->bg); 7383 evas_object_del(term->bg);