Places: close the popup also when clicked on an icon or on the header.
SVN revision: 84537
This commit is contained in:
parent
9c969a2c0a
commit
5d7c7e1264
|
@ -182,6 +182,20 @@ e_modapi_save(E_Module *m)
|
|||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
places_popups_close(void)
|
||||
{
|
||||
Eina_List *l;
|
||||
Instance *inst;
|
||||
|
||||
EINA_LIST_FOREACH(instances, l, inst)
|
||||
if (inst->popup)
|
||||
{
|
||||
e_object_del(E_OBJECT(inst->popup));
|
||||
inst->popup = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
places_menu_augmentation(void)
|
||||
{
|
||||
|
|
|
@ -71,6 +71,7 @@ EAPI int e_modapi_save(E_Module *m);
|
|||
|
||||
E_Config_Dialog *e_int_config_places_module(E_Container *con, const char *params);
|
||||
void places_menu_augmentation(void);
|
||||
void places_popups_close(void);
|
||||
|
||||
extern Config *places_conf;
|
||||
extern Eina_List *instances;
|
||||
|
|
|
@ -615,12 +615,6 @@ _places_run_fm_external(const char *fm, const char *directory)
|
|||
static void
|
||||
_places_run_fm(const char *directory)
|
||||
{
|
||||
// TODO close the popup if any...but I miss inst here :/
|
||||
// if (!m && inst->popup && places_conf->autoclose_popup)
|
||||
// {
|
||||
// e_object_del(E_OBJECT(inst->popup));
|
||||
// }
|
||||
|
||||
if (places_conf->fm && places_conf->fm[0])
|
||||
{
|
||||
_places_run_fm_external(places_conf->fm, directory);
|
||||
|
@ -638,6 +632,9 @@ _places_run_fm(const char *directory)
|
|||
"Please choose a custom file manager in<br>"
|
||||
"the gadget configuration."));
|
||||
}
|
||||
|
||||
if (places_conf->autoclose_popup)
|
||||
places_popups_close();
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue