discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b85934ef3588f790134667e42b7e8c023c92b2c1

commit b85934ef3588f790134667e42b7e8c023c92b2c1
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Mon Dec 30 11:32:03 2013 -0500

    add urgency hint test
---
 src/tests/urgent.c | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/src/tests/urgent.c b/src/tests/urgent.c
new file mode 100644
index 0000000..1ae10ad
--- /dev/null
+++ b/src/tests/urgent.c
@@ -0,0 +1,28 @@
+#include <Ecore_Evas.h>
+
+static void
+_focus(Ecore_Evas *ee)
+{
+   ecore_evas_urgent_set(ee, 0);
+}
+
+static void
+_focus_out(Ecore_Evas *ee)
+{
+   ecore_evas_urgent_set(ee, 1);
+}
+
+int
+main(void)
+{
+   Ecore_Evas *ee;
+
+   ecore_evas_init();
+   ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL);
+   ecore_evas_callback_focus_in_set(ee, _focus);
+   ecore_evas_callback_focus_out_set(ee, _focus_out);
+   ecore_evas_show(ee);
+   ecore_evas_urgent_set(ee, 1);
+   ecore_main_loop_begin();
+   return 0;
+}

-- 


Reply via email to