Set correct window title when we navigate to different places.
SVN revision: 31273
This commit is contained in:
parent
7bfdc90806
commit
3e63519a9a
|
@ -239,11 +239,13 @@ e_fwin_zone_new(E_Zone *zone, const char *dev, const char *path)
|
||||||
|
|
||||||
e_fm2_path_set(fwin->fm_obj, dev, path);
|
e_fm2_path_set(fwin->fm_obj, dev, path);
|
||||||
|
|
||||||
|
/*
|
||||||
file = ecore_file_file_get(e_fm2_real_path_get(fwin->fm_obj));
|
file = ecore_file_file_get(e_fm2_real_path_get(fwin->fm_obj));
|
||||||
if (file)
|
if (file)
|
||||||
snprintf(buf, sizeof(buf), "%s", file);
|
snprintf(buf, sizeof(buf), "%s", file);
|
||||||
else
|
else
|
||||||
snprintf(buf, sizeof(buf), "%s", e_fm2_real_path_get(fwin->fm_obj));
|
snprintf(buf, sizeof(buf), "%s", e_fm2_real_path_get(fwin->fm_obj));
|
||||||
|
*/
|
||||||
// return fwin;
|
// return fwin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -509,6 +511,7 @@ _e_fwin_changed(void *data, Evas_Object *obj, void *event_info)
|
||||||
E_Fwin *fwin;
|
E_Fwin *fwin;
|
||||||
Efreet_Desktop *ef;
|
Efreet_Desktop *ef;
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
|
const char *file;
|
||||||
|
|
||||||
fwin = data;
|
fwin = data;
|
||||||
/* FIXME: first look in E config for a special override for this dir's bg
|
/* FIXME: first look in E config for a special override for this dir's bg
|
||||||
|
@ -566,6 +569,14 @@ _e_fwin_changed(void *data, Evas_Object *obj, void *event_info)
|
||||||
e_fm2_custom_theme_set(obj, fwin->theme_file);
|
e_fm2_custom_theme_set(obj, fwin->theme_file);
|
||||||
else
|
else
|
||||||
e_fm2_custom_theme_set(obj, NULL);
|
e_fm2_custom_theme_set(obj, NULL);
|
||||||
|
|
||||||
|
if (fwin->zone) return;
|
||||||
|
file = ecore_file_file_get(e_fm2_real_path_get(fwin->fm_obj));
|
||||||
|
if (file)
|
||||||
|
snprintf(buf, sizeof(buf), "%s", file);
|
||||||
|
else
|
||||||
|
snprintf(buf, sizeof(buf), "%s", e_fm2_real_path_get(fwin->fm_obj));
|
||||||
|
e_win_title_set(fwin->win, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue