add urgency hint test

devs/discomfitor/eo
Mike Blumenkrantz 9 years ago
parent 166ed0d234
commit b85934ef35
  1. 28
      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;
}
Loading…
Cancel
Save