summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <mike@zentific.com>2013-05-18 10:16:22 +0100
committerdiscomfitor <mike@zentific.com>2013-05-18 19:39:51 +0100
commita7148b558feb79a4e093f0230c397e3ae176a269 (patch)
treeffcf19ab8a041628678d66a2d5afe81d2debfd22
parentc29269c6b50ca07e1e1373806e92340005d4ffcf (diff)
e_exec_desktop_instances_find
-rw-r--r--ChangeLog4
-rw-r--r--NEWS1
-rw-r--r--src/bin/e_exec.c6
-rw-r--r--src/bin/e_exec.h2
4 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 758369b67..f6e395ab8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
12013-05-18 Mike Blumenkrantz
2
3 * add e_exec_desktop_instances_find
4
12013-05-14 Mike Blumenkrantz 52013-05-14 Mike Blumenkrantz
2 6
3 * e_desk_last_focused now returns the border it wants to focus 7 * e_desk_last_focused now returns the border it wants to focus
diff --git a/NEWS b/NEWS
index ec3753d2b..c326ce6f5 100644
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,7 @@ Additions:
35 * added e_gadcon_repopulate 35 * added e_gadcon_repopulate
36 * added e_comp_win_effect* api 36 * added e_comp_win_effect* api
37 * added deskmirror 37 * added deskmirror
38 * add e_exec_desktop_instances_find
38 Config: 39 Config:
39 * Added option for disabling icons in menus 40 * Added option for disabling icons in menus
40 * Added option for disabling pointer warping when performing directional focus changes using winlist 41 * Added option for disabling pointer warping when performing directional focus changes using winlist
diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c
index 4f75dfd04..2d49730b5 100644
--- a/src/bin/e_exec.c
+++ b/src/bin/e_exec.c
@@ -1085,3 +1085,9 @@ _dialog_save_cb(void *data __UNUSED__, void *data2)
1085 fclose(f); 1085 fclose(f);
1086} 1086}
1087 1087
1088EAPI const Eina_List *
1089e_exec_desktop_instances_find(const Efreet_Desktop *desktop)
1090{
1091 EINA_SAFETY_ON_NULL_RETURN_VAL(desktop, NULL);
1092 return eina_hash_find(e_exec_instances, desktop->orig_path);
1093}
diff --git a/src/bin/e_exec.h b/src/bin/e_exec.h
index 2e66aa108..a6c10cf4e 100644
--- a/src/bin/e_exec.h
+++ b/src/bin/e_exec.h
@@ -38,6 +38,6 @@ EAPI E_Exec_Instance *e_exec_startup_desktop_instance_find(Efreet_Desktop *deskt
38EAPI void e_exec_instance_found(E_Exec_Instance *inst); 38EAPI void e_exec_instance_found(E_Exec_Instance *inst);
39EAPI void e_exec_instance_watcher_add(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data); 39EAPI void e_exec_instance_watcher_add(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data);
40EAPI void e_exec_instance_watcher_del(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data); 40EAPI void e_exec_instance_watcher_del(E_Exec_Instance *inst, void (*func) (void *data, E_Exec_Instance *inst, E_Exec_Watch_Type type), const void *data);
41 41EAPI const Eina_List *e_exec_desktop_instances_find(const Efreet_Desktop *desktop);
42#endif 42#endif
43#endif 43#endif