parent
753d500185
commit
684c7499ad
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
#include <Elementary.h>
|
#include <Elementary.h>
|
||||||
#include "about.h"
|
#include "about.h"
|
||||||
|
#include "config.h"
|
||||||
|
#include "termio.h"
|
||||||
|
|
||||||
static Evas_Object *ab_layout = NULL, *ab_over = NULL;
|
static Evas_Object *ab_layout = NULL, *ab_over = NULL;
|
||||||
static Eina_Bool ab_out = EINA_FALSE;
|
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;
|
saved_bg = bg;
|
||||||
if (!ab_layout)
|
if (!ab_layout)
|
||||||
{
|
{
|
||||||
|
Config *config = termio_config_get(term);
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
|
|
||||||
ab_layout = o = elm_layout_add(win);
|
ab_layout = o = elm_layout_add(win);
|
||||||
snprintf(buf, sizeof(buf), "%s/themes/default.edj",
|
if (elm_layout_file_set(o, config_theme_path_get(config),
|
||||||
elm_app_data_dir_get());
|
"terminology/about") == 0)
|
||||||
elm_layout_file_set(o, buf, "terminology/about");
|
{
|
||||||
|
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
|
elm_object_part_text_set
|
||||||
(o, "terminology.text",
|
(o, "terminology.text",
|
||||||
"<b>Terminology "PACKAGE_VERSION"</b><br>"
|
"<b>Terminology "PACKAGE_VERSION"</b><br>"
|
||||||
|
|
Loading…
Reference in New Issue