[E-devel] entrance dual-screen fix
Hi. I have a dual screen system (using Nvidia:s xinerama emulation) with screen 0 to the right of screen 1. Entrance handles the screens nicely when moving the cursor between them but initially it always start up as if it tries to center over both screens but using screen 0 as origin (ie. half ends up outside the screen). The problem was that the ui object was resized after the workspace size in window_resize_cb, not the screen size (as in screen_switch_cb). Attached patch fixes this at least for me... /JK Index: src/client/main.c === --- src/client/main.c (revision 35672) +++ src/client/main.c (working copy) @@ -135,6 +135,23 @@ ecore_main_loop_quit(); } +static void +resize_object_after_screen(Evas_Object *o, int s, int screens, int w, int h) +{ + if (screens 1) + { + int sx, sy, sw, sh; + + ecore_x_xinerama_screen_geometry_get(s, sx, sy, sw, sh); + evas_object_move(o, sx, sy); + evas_object_resize(o, sw, sh); + } + else + { + evas_object_resize(o, w, h); + } +} + /** * handle when the ecore_evas needs to be resized * @param ee - The Ecore_Evas we're resizing @@ -142,15 +159,14 @@ static void window_resize_cb(Ecore_Evas * ee) { - Evas_Object *o = NULL; + Evas_Object *o = NULL, *ui = NULL; int w, h; int screens, i; char buf[50]; ecore_evas_geometry_get(ee, NULL, NULL, w, h); - if ((o = evas_object_name_find(ecore_evas_get(ee), ui))) - evas_object_resize(o, w, h); + ui = evas_object_name_find(ecore_evas_get(ee), ui); screens = ecore_x_xinerama_screen_count_get(); if (!screens) @@ -160,19 +176,12 @@ snprintf(buf, sizeof(buf), background%d, i); if ((o = evas_object_name_find(ecore_evas_get(ee), buf))) { - if (screens 1) - { -int sx, sy, sw, sh; - -ecore_x_xinerama_screen_geometry_get(i, sx, sy, sw, sh); -evas_object_move(o, sx, sy); -evas_object_resize(o, sw, sh); - } - else - { -evas_object_resize(o, w, h); - } + resize_object_after_screen(o, i, screens, w, h); } + if (i == session-current_screen ui != NULL) + { + resize_object_after_screen(ui, i, screens, w, h); + } } } - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] adding Eps in PROTO/
Hey, I have checked out some libs in PROTO with the following command: svn co svn+ssh://[EMAIL PROTECTED]/var/svn/e/trunk/PROTO/epdf e17/proto/epdf (that is, i try to mimic the old directory organisation) Now, i have put eps (a lib) in e17/libs/proto, and I would like to add it in trunk/PROTO If I just do: svn add eps svn add eps/configure.in etc... will eps be in trunk/PROTO ? I doubt, as there is no .svn in e17/proto should I do : svn add PROTO/eps ? thank you Vincent - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] adding Eps in PROTO/
On Wed, Aug 27, 2008 at 12:17:06PM +0200, Vincent Torri wrote: Hey, I have checked out some libs in PROTO with the following command: svn co svn+ssh://[EMAIL PROTECTED]/var/svn/e/trunk/PROTO/epdf e17/proto/epdf (that is, i try to mimic the old directory organisation) Now, i have put eps (a lib) in e17/libs/proto, and I would like to add it in trunk/PROTO If I just do: svn add eps svn add eps/configure.in etc... will eps be in trunk/PROTO ? I doubt, as there is no .svn in e17/proto should I do : svn add PROTO/eps ? thank you Vincent I guess you need to checkout the whole PROTO directory first. svn co svn+ssh://[EMAIL PROTECTED]/var/svn/e/trunk/PROTO/ e17/proto/ Then proto/ would be under svn control. Then (if you have eps in /proto): cd e17/proto/ svn add eps svn ci I think that would work. -- King regards, Fedor Gusev. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Gradients are gone.
I think the most recent patches for gradients have totally destroyed all gradients in E. Poor lil Edjy is ruined and so is the Gradient wallpaper selector and all the things associated with that. Toma - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Gradients are gone.
On Wed, 27 Aug 2008 21:21:33 +0800 Toma [EMAIL PROTECTED] babbled: I think the most recent patches for gradients have totally destroyed all gradients in E. Poor lil Edjy is ruined and so is the Gradient wallpaper selector and all the things associated with that. i saw today. what is bizarre - i looked at the patches and they added a new gradient2 object - and didnt remove the old gradient... so it should thave been non-invasive... hmmm. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)[EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] eyesight patch to allow conditional compile of plugins
This patch will use automake conditionals to compile or not depending if epdf, edvi and eps are available. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: [EMAIL PROTECTED] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 Index: configure.in === --- configure.in(revision 199) +++ configure.in(working copy) @@ -37,19 +37,22 @@ [epdf esmart_container esmart_text_entry -]) - +], [HAVE_EPDF=true], [HAVE_EPDF=false]) +AM_CONDITIONAL(HAVE_EPDF, $HAVE_EPDF) + PKG_CHECK_MODULES([EDVI], [edvi esmart_container esmart_text_entry -]) +], [HAVE_EDVI=true], [HAVE_EDVI=false]) +AM_CONDITIONAL(HAVE_EDVI, $HAVE_EDVI) PKG_CHECK_MODULES([EPS], [eps esmart_container esmart_text_entry -]) +], [HAVE_EPS=true], [HAVE_EPS=false]) +AM_CONDITIONAL(HAVE_EPS, $HAVE_EPS) AC_OUTPUT([ Makefile Index: src/plugins/document/Makefile.am === --- src/plugins/document/Makefile.am(revision 199) +++ src/plugins/document/Makefile.am(working copy) @@ -8,24 +8,34 @@ plugindir = $(prefix)/lib/eyesight/plugins -plugin_LTLIBRARIES = pdf.la dvi.la ps.la +plugin_LTLIBRARIES = + +if HAVE_EPDF +plugin_LTLIBRARIES += pdf.la pdf_la_SOURCES = document.c animations.c toolbar.c view.c pdf_la_CFLAGS = -Wall -DPDF -Werror -g pdf_la_LDFLAGS = -module -avoid-version -no-undefined pdf_la_LIBTOOLFLAGS = --tag=disable-static pdf_la_LIBADD = @EYESIGHT_LIBS@ @EPDF_LIBS@ @intl_libs@ @dlopen_libs@ +endif +if HAVE_EDVI +plugin_LTLIBRARIES += dvi.la dvi_la_SOURCES = document.c animations.c toolbar.c view.c dvi_la_CFLAGS = -Wall -DDVI -Werror -g dvi_la_LDFLAGS = -module -avoid-version -no-undefined dvi_la_LIBTOOLFLAGS = --tag=disable-static dvi_la_LIBADD = @EYESIGHT_LIBS@ @EDVI_LIBS@ @intl_libs@ @dlopen_libs@ +endif +if HAVE_EPS +plugin_LTLIBRARIES += ps.la ps_la_SOURCES = document.c animations.c toolbar.c view.c ps_la_CFLAGS = -Wall -DPS -Werror -g ps_la_LDFLAGS = -module -avoid-version -no-undefined ps_la_LIBTOOLFLAGS = --tag=disable-static ps_la_LIBADD = @EYESIGHT_LIBS@ @EPS_LIBS@ @intl_libs@ @dlopen_libs@ +endif EXTRA_DIST = animations.h document.h toolbar.h defines.h view.h - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel