load about from theme if possible

SVN revision: 83494
This commit is contained in:
Boris Faure 2013-01-30 23:09:47 +00:00
parent 753d500185
commit 684c7499ad
1 changed files with 10 additions and 3 deletions

View File

@ -2,6 +2,8 @@
#include <Elementary.h>
#include "about.h"
#include "config.h"
#include "termio.h"
static Evas_Object *ab_layout = NULL, *ab_over = NULL;
static Eina_Bool ab_out = EINA_FALSE;
@ -34,12 +36,17 @@ about_toggle(Evas_Object *win, Evas_Object *bg, Evas_Object *term)
saved_bg = bg;
if (!ab_layout)
{
Config *config = termio_config_get(term);
char buf[PATH_MAX];
ab_layout = o = elm_layout_add(win);
snprintf(buf, sizeof(buf), "%s/themes/default.edj",
elm_app_data_dir_get());
elm_layout_file_set(o, buf, "terminology/about");
if (elm_layout_file_set(o, config_theme_path_get(config),
"terminology/about") == 0)
{
snprintf(buf, sizeof(buf), "%s/themes/default.edj",
elm_app_data_dir_get());
elm_layout_file_set(o, buf, "terminology/about");
}
elm_object_part_text_set
(o, "terminology.text",
"<b>Terminology "PACKAGE_VERSION"</b><br>"