forked from enlightenment/enventor
modify gui.
display file path on the window title not on the statusbar.
This commit is contained in:
parent
afb618365a
commit
79eb7b7f88
|
@ -17,6 +17,15 @@ win_delete_request_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED,
|
|||
menu_exit();
|
||||
}
|
||||
|
||||
void
|
||||
base_title_set(const char *path)
|
||||
{
|
||||
base_data *bd = g_bd;
|
||||
char buf[PATH_MAX];
|
||||
snprintf(buf, sizeof(buf), "%s - Enventor", path);
|
||||
elm_win_title_set(bd->win, buf);
|
||||
}
|
||||
|
||||
void
|
||||
base_statusbar_toggle()
|
||||
{
|
||||
|
|
|
@ -796,7 +796,8 @@ edit_edc_read(edit_data *ed, const char *file_path)
|
|||
Eina_Stringshare *group_name =
|
||||
parser_first_group_name_get(ed->pd, ed->en_edit);
|
||||
|
||||
stats_edc_file_set(ed->sd, group_name);
|
||||
stats_edc_group_set(ed->sd, group_name);
|
||||
base_title_set(config_edc_path_get());
|
||||
|
||||
ecore_animator_add(syntax_color_timer_cb, ed);
|
||||
|
||||
|
|
|
@ -338,7 +338,7 @@ edc_view_set(app_data *ad, stats_data *sd, Eina_Stringshare *group)
|
|||
|
||||
if (!vd) return;
|
||||
|
||||
if (group) stats_edc_file_set(sd, group);
|
||||
if (group) stats_edc_group_set(sd, group);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -21,11 +21,10 @@ stats_line_num_update(stats_data *sd, int cur_line, int max_line)
|
|||
}
|
||||
|
||||
void
|
||||
stats_edc_file_set(stats_data *sd, Eina_Stringshare *group_name)
|
||||
stats_edc_group_set(stats_data *sd, Eina_Stringshare *group_name)
|
||||
{
|
||||
char buf[PATH_MAX];
|
||||
const char *filename = ecore_file_file_get(config_edc_path_get());
|
||||
snprintf(buf, sizeof(buf), "<align=right>File [<style=glow><color=#3399ff>%s</color></style>] Group [<style=glow><color=#3399ff>%s</color></style>]</align>", filename, group_name);
|
||||
char buf[1028];
|
||||
snprintf(buf, sizeof(buf), "<align=right>Group [<style=glow><color=#3399ff>%s</color></style>]</align>", group_name);
|
||||
elm_object_part_text_set(sd->layout, "elm.text.file_group_name", buf);
|
||||
sd->group_name = eina_stringshare_add(group_name);
|
||||
}
|
||||
|
@ -44,7 +43,7 @@ stats_init(Evas_Object *parent)
|
|||
"Cursor [<style=glow><color=#3399ff>0</color></style>,<style=glow><color=#3399ff>0</color></style>] [<style=glow><color=#3399ff>0.00</color></style>,<style=glow><color=#3399ff>0.00</color></style>]");
|
||||
sd->layout = layout;
|
||||
|
||||
stats_edc_file_set(sd, NULL);
|
||||
stats_edc_group_set(sd, NULL);
|
||||
|
||||
return sd;
|
||||
}
|
||||
|
|
|
@ -5,5 +5,5 @@ void stats_cursor_pos_update(stats_data *sd, Evas_Coord x, Evas_Coord y, float r
|
|||
void stats_info_msg_update(stats_data *sd, const char *msg);
|
||||
void stats_line_num_update(stats_data *sd, int cur_line, int max_line);
|
||||
Evas_Object *stats_obj_get(stats_data *sd);
|
||||
void stats_edc_file_set(stats_data *sd, const char *group_name);
|
||||
void stats_edc_group_set(stats_data *sd, const char *group_name);
|
||||
Eina_Stringshare *stats_group_name_get(stats_data *sd);
|
||||
|
|
Loading…
Reference in New Issue