Re: [Evolution-hackers] e_canvas_new in Evolution
On Fri, 2008-06-13 at 17:16 +0530, svalbard colaco wrote: > Thanks for your prompt reply, > "aa" is not a member of the ECANVAS structure ; > > In gnome_canvas_new_aa() function "aa" is a member of the Gnome_canvas > structure , defined as below > /* Whether the canvas is in antialiased mode or not */ > unsigned int aa : 1; > And the link below gives us the details of the two modes of gnome > canvas operation > http://developer.gnome.org/doc/GGAD/z177.html > > So making the "aa" modification; will it understand as to what is to > be done? > > Are these two modes supported in Ecanvas ? > > what do you suggest ? Hi, based on this documentation of GnomeCanvas, http://library.gnome.org/devel/libgnomecanvas/stable/GnomeCanvas.html#GnomeCanvas--aa you can pass this property in construction time, which I believe means in call of g_object_new, and because ECanvas is the specialization of the GnomeCanvas, then the GnomeCanvas will set this property, same as it does in gnome_canvas_new_aa: http://svn.gnome.org/viewvc/libgnomecanvas/trunk/libgnomecanvas/gnome-canvas.c?revision=1286&view=markup Hope that helps, Milan ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] e_canvas_new in Evolution
Hi Milan Thanks for your prompt reply, "aa" is not a member of the ECANVAS structure ; In gnome_canvas_new_aa() function "aa" is a member of the Gnome_canvas structure , defined as below /* Whether the canvas is in antialiased mode or not */ unsigned int aa : 1; And the link below gives us the details of the two modes of gnome canvas operation http://developer.gnome.org/doc/GGAD/z177.html So making the "aa" modification; will it understand as to what is to be done? Are these two modes supported in Ecanvas ? what do you suggest ? Thanks & Regards sv. On Fri, Jun 13, 2008 at 12:36 PM, Milan Crha <[EMAIL PROTECTED]> wrote: > On Fri, 2008-06-13 at 12:17 +0530, svalbard colaco wrote: > > Yup i got the sources but there is nt any anti-aliased"aa" > > mode of canvas generation . and e_canvas are diffrent from > > gnome_canvases > > i think. > > Neither did i get a function for repainting a canavs. > > > > Any more suggestions? > > Hi, > based on the code, ECanvas is a descendant of the GnomeCanvas. I would > suggest, for testing, changing e_canvas_new from: > > GtkWidget * > e_canvas_new (void) > { >return GTK_WIDGET (g_object_new (E_CANVAS_TYPE, NULL)); > } > > to > > GtkWidget * > e_canvas_new (void) > { >return GTK_WIDGET (g_object_new (E_CANVAS_TYPE, >"aa", TRUE, NULL)); > } > > or something like that. > For calling redraw, you can do it in a same way as for GnomeCanvas. >Bye, >Milan > > ___ > Evolution-hackers mailing list > Evolution-hackers@gnome.org > http://mail.gnome.org/mailman/listinfo/evolution-hackers > ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] e_canvas_new in Evolution
On Fri, 2008-06-13 at 12:17 +0530, svalbard colaco wrote: > Yup i got the sources but there is nt any anti-aliased"aa" > mode of canvas generation . and e_canvas are diffrent from > gnome_canvases > i think. > Neither did i get a function for repainting a canavs. > > Any more suggestions? Hi, based on the code, ECanvas is a descendant of the GnomeCanvas. I would suggest, for testing, changing e_canvas_new from: GtkWidget * e_canvas_new (void) { return GTK_WIDGET (g_object_new (E_CANVAS_TYPE, NULL)); } to GtkWidget * e_canvas_new (void) { return GTK_WIDGET (g_object_new (E_CANVAS_TYPE, "aa", TRUE, NULL)); } or something like that. For calling redraw, you can do it in a same way as for GnomeCanvas. Bye, Milan ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] e_canvas_new in Evolution
On Fri, Jun 13, 2008 at 12:17 PM, svalbard colaco <[EMAIL PROTECTED]> wrote: > Hi Milan , > > Yup i got the sources but there is nt any anti-aliased"aa" > mode of canvas generation . and e_canvas are diffrent from gnome_canvases > i think. > Neither did i get a function for repainting a canavs. > > Any more suggestions? > > Thanks, > sv. > > > On Fri, Jun 13, 2008 at 12:11 PM, Milan Crha <[EMAIL PROTECTED]> wrote: > >> On Fri, 2008-06-13 at 11:52 +0530, svalbard colaco wrote: >> > Investigating the source code has revealed that this part is formed in >> > evolution-2.12/widgets/tables e-table.c >> > in e_table_setup_table() function using the function e_canvas_new >> > () , Are there any modes for this >> > canvas generated using this function , like gnome canvas has >> > gnome_canvas_new() -GDK mode and >> > gnome_canvas_new_aa () - RGB mode ; >> >> Hi, >> sources of ECanvas are part of Evolution sources, it's in >> widgets/misc/e-canvas.[hc] >>Hope that helps, >> Milan >> >> > ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
Re: [Evolution-hackers] e_canvas_new in Evolution
On Fri, 2008-06-13 at 11:52 +0530, svalbard colaco wrote: > Investigating the source code has revealed that this part is formed in > evolution-2.12/widgets/tables e-table.c > in e_table_setup_table() function using the function e_canvas_new > () , Are there any modes for this > canvas generated using this function , like gnome canvas has > gnome_canvas_new() -GDK mode and > gnome_canvas_new_aa () - RGB mode ; Hi, sources of ECanvas are part of Evolution sources, it's in widgets/misc/e-canvas.[hc] Hope that helps, Milan ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers
[Evolution-hackers] e_canvas_new in Evolution
Hi all, When Evolution on DirectFB is run the task summary , memo summary appears black but when click on the click-to-add it appears white as expected. Investigating the source code has revealed that this part is formed in e* volution-2.12/widgets/tables* e-table.c in *e_table_setup_table() *function using the function *e_canvas_new ()* , Are there any modes for this canvas generated using this function , like gnome canvas has gnome_canvas_new() -GDK mode and gnome_canvas_new_aa () - RGB mode ; I need to know if these canvases can be generated using gnome_canvas_new() or gnome_canvas_new_aa() ? Is this possible ? because using e_canvas_new() is causing the problem ; or i wanted Know an "aa" (antialiased) mode of operation using this function. lke in gnome_canvas_new. or I need to know if this GNOME Applications Library e_canvas has any functions to re-paint ? Any pointers in this regard wil be of great help.. Awating your inputs , & Thanking you'll in advance. Ragards sv.. ___ Evolution-hackers mailing list Evolution-hackers@gnome.org http://mail.gnome.org/mailman/listinfo/evolution-hackers