add method for checking if typebufs are visible in fsel widget using methods added in my previous commit that I cleverly did not mention to confuse my future self when I again go to work on this code

SVN revision: 73968
This commit is contained in:
Mike Blumenkrantz 2012-07-17 10:27:15 +00:00
parent 091e897f64
commit eb01623a90
2 changed files with 12 additions and 1 deletions

View File

@ -460,6 +460,17 @@ e_widget_fsel_window_object_set(Evas_Object *obj, E_Object *eobj)
e_fm2_window_object_set(wd->o_files_fm, eobj);
}
EAPI Eina_Bool
e_widget_fsel_typebuf_visible_get(Evas_Object *obj)
{
E_Widget_Data *wd;
if (!obj) return EINA_FALSE;
wd = e_widget_data_get(obj);
if (!wd) return EINA_FALSE;
return e_fm2_typebuf_visible_get(wd->o_files_fm) || e_fm2_typebuf_visible_get(wd->o_favorites_fm);
}
static void
_e_wid_del_hook(Evas_Object *obj)
{

View File

@ -9,6 +9,6 @@ EAPI Evas_Object *e_widget_fsel_add(Evas *evas, const char *dev, const char *pat
EAPI void e_widget_fsel_path_get(Evas_Object *obj, const char **dev, const char **path);
EAPI const char *e_widget_fsel_selection_path_get(Evas_Object *obj);
EAPI void e_widget_fsel_window_object_set(Evas_Object *obj, E_Object *eobj);
EAPI Eina_Bool e_widget_fsel_typebuf_visible_get(Evas_Object *obj);
#endif
#endif