On 01/05/12 00:44, eva...@evadim.ru wrote:
> Jérôme Pinot <ngc...@gmail.com> писал(а) в своём письме Wed, 04 Jan 2012
> 16:05:55 +0100:
>
> > On 01/04/12 13:20, eva...@evadim.ru wrote:
> >> Jérôme Pinot <ngc...@gmail.com> писал(а) в своём письме Mon, 02 Jan 2012
> >> 10:47:29 +0100:
> >>
> >> >Hi again :-)
> >> >
> >> >A new release of ePeriodique which is a graphical application that
> >> >display the periodic table of the elements. It uses elementary and edje.
> >> >
> >>
> >> Hi!
> >>
> >> I'm made ebuild for it for gentoo linux. It compiles, but after start -
> >> terminated.
> >> Build log in attach, in it I see few warnings and QA messages.
> >
> > Thanks for your report!
> >
> >> [...]
> >>
> >> In file included from /usr/include/string.h:642:0,
> >> from
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:28:
> >> In function 'memcpy',
> >> inlined from 'popup_data' at
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:110:9:
> >> /usr/include/bits/string3.h:52:3: warning: call to __builtin___memcpy_chk
> >> will always overflow destination buffer
> >> In file included from /usr/include/stdio.h:930:0,
> >> from
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:29:
> >> In function 'snprintf',
> >> inlined from 'elm_main' at
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:324:13:
> >> /usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk
> >> will always overflow destination buffer
> >> In function 'snprintf',
> >> inlined from 'elm_main' at
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:336:13:
> >> /usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk
> >> will always overflow destination buffer
> >> In function 'snprintf',
> >> inlined from 'elm_main' at
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:355:13:
> >> /usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk
> >> will always overflow destination buffer
> >> In function 'snprintf',
> >> inlined from 'elm_main' at
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:357:13:
> >> /usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk
> >> will always overflow destination buffer
> >> In function 'snprintf',
> >> inlined from 'elm_main' at
> >> /var/tmp/portage/sci-chemistry/eperiodique-0.2/work/eperiodique-0.2/src/main.c:359:13:
> >> /usr/include/bits/stdio2.h:65:3: warning: call to __builtin___snprintf_chk
> >> will always overflow destination buffer
> >
> > Could you try this patch?
> >
> >
> > diff --git a/src/main.c b/src/main.c
> > ---skip---
>
> It work, thanks!
So it's in git:
http://eperiodique.git.sourceforge.net/git/gitweb.cgi?p=eperiodique/eperiodique;a=summary
>But, I see strange font size variations, depend on locale.
> I think about fonts, but they all in inglish, and letters in table not
> affected.
>
> default theme:
>
> $ eperiodique
> http://ompldr.org/vYzI3eQ
>
> $ LC_ALL=POSIX eperiodique
> http://ompldr.org/vYzI3eg
>
> small theme:
>
> $ eperiodique -t small
> http://ompldr.org/vYzI4MQ
>
> $ LC_ALL=POSIX eperiodique -t small
> http://ompldr.org/vYzI4MA
Weird, scaling should not depend on locale. Maybe something wrong in
elementary.
Anyway, scaling factor is maybe better managed globally by the user via
elementary_config so I will just remove the scaling code from
eperiodique, it fixes the problem.
Could you try this patch?
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 989629e..8c97ec9 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -17,7 +17,6 @@ collections {
/* Should be good for most computers */
item: "width" "1024";
item: "height" "700";
- item: "scale" "1.2";
}
}
diff --git a/data/themes/small.edc b/data/themes/small.edc
index ba64185..cadc926 100644
--- a/data/themes/small.edc
+++ b/data/themes/small.edc
@@ -16,7 +16,6 @@ collections {
data {
item: "width" "640";
item: "height" "400";
- item: "scale" "0.9";
}
}
diff --git a/src/main.c b/src/main.c
index 6aeab48..87e0a0b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -445,8 +445,6 @@ elm_main(int argc, char **argv)
edje = elm_layout_edje_get(wsize);
width = atoi(edje_object_data_get(edje, "width"));
height = atoi(edje_object_data_get(edje, "height"));
- scale = atof(edje_object_data_get(edje, "scale"));
- elm_scale_set(scale);
evas_object_resize(window, width, height);
elm_object_focus_set(window, EINA_TRUE);
evas_object_show(window);
--
Jérôme Pinot
http://ngc891.blogdns.net/
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users