yay now we need libxcb-keysyms1-dev! I updated 1. http://www.enlightenment.org/p.php?p=contribute 2. http://trac.enlightenment.org/e/wiki/Ubuntu 3. trunk/devs/seoz/build.sh
Thanks. Daniel Juyung Seo (SeoZ) On Fri, Nov 9, 2012 at 10:53 PM, Enlightenment SVN < [email protected]> wrote: > Log: > e: improve usability of WBOD. > > > Author: cedric > Date: 2012-11-09 05:53:08 -0800 (Fri, 09 Nov 2012) > New Revision: 79023 > Trac: http://trac.enlightenment.org/e/changeset/79023 > > Modified: > trunk/e/configure.ac trunk/e/src/bin/e_alert_main.c > > Modified: trunk/e/configure.ac > =================================================================== > --- trunk/e/configure.ac 2012-11-09 13:14:21 UTC (rev 79022) > +++ trunk/e/configure.ac 2012-11-09 13:53:08 UTC (rev 79023) > @@ -523,6 +523,7 @@ > PKG_CHECK_MODULES(E_ALERT, [ > xcb > xcb-shape > + xcb-keysyms > eina >= ${efl_version} > ecore >= ${efl_version} > ecore-ipc >= ${efl_version} > > Modified: trunk/e/src/bin/e_alert_main.c > =================================================================== > --- trunk/e/src/bin/e_alert_main.c 2012-11-09 13:14:21 UTC (rev 79022) > +++ trunk/e/src/bin/e_alert_main.c 2012-11-09 13:53:08 UTC (rev 79023) > @@ -12,7 +12,9 @@ > #include <Ecore.h> > #include <Ecore_Ipc.h> > #include <xcb/xcb.h> > +#include <xcb/xcb_keysyms.h> > #include <xcb/shape.h> > +#include <X11/keysym.h> > > #define WINDOW_WIDTH 320 > #define WINDOW_HEIGHT 240 > @@ -93,7 +95,7 @@ > > title = "Enlightenment Error"; > str1 = "(F1) Recover"; > - str2 = "(F2) Exit"; > + str2 = "(F12) Logout"; > > _e_alert_create(); > _e_alert_display(); > @@ -422,15 +424,23 @@ > static int > _e_alert_handle_key_press(xcb_generic_event_t *event) > { > + xcb_key_symbols_t *symbols; > xcb_key_press_event_t *ev; > + xcb_keysym_t key; > + int r = 0; > > ev = (xcb_key_press_event_t *)event; > - if (ev->detail == 67) // F1 > - return 1; > - else if (ev->detail == 68) // F2 > - return 2; > - else > - return 0; > + symbols = xcb_key_symbols_alloc(conn); > + key = xcb_key_symbols_get_keysym(symbols, ev->detail, 0); > + > + if (key == XK_F1) > + r = 1; > + else if (key == XK_F12) > + r = 2; > + > + xcb_key_symbols_free(symbols); > + > + return r; > } > > static int > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > enlightenment-svn mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-svn > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
