Re: pretty, pretty font



On Mon, 2005-03-28 at 11:43 -0800, Tom Kast wrote:
while bugzilla is down 8-|... 

...re: [Bug 168638] UML Class Goes Bold:
http://bugzilla.gnome.org/show_bug.cgi?id=168638

"Version details: 0.94 also has bug
Distribution/Version: Fedora Core 3
In a UML class diagram, sometimes when you select a new class from the
tablet, a previously-added class in the diagram goes bold in the font
(class name).  It goes back to normal if you left click on it.  Why is
it going bold in the first place?  How does selecting it fix it?"

...btw, getting the latest checkout of
gtk/glib/glitz/pango/cairo/libpixman et.al. did not effect this bug
(168638) in any way....  a good thing i'd say...

We don't use glitz or libpixman, so you don't need to worry about them.

the fix (below) is just to update the respective rect's for all of a
diagrams'/layers' objects a bit more than the existing application
flow does.

anyone worried about dia performance if I tuck a call to someting like
the this in disp_callbacks.c:display_canvas_events() for a right
event?

GList *gl;
GList *list_item;
DiaObject *obj;
Layer *lay;
lay = ddisp->diagram->data->active_layer;
gl = lay->objects;
for (list_item = g_list_last(gl);
list_item != NULL;
list_item = g_list_previous(list_item)){
  obj = (DiaObject*)list_item->data;
  printf("\n*doing an update on: %s\n", obj->type->name);
  diagram_add_update(ddisp->diagram, &objx->bounding_box);
}

You might as well call ddisplay_add_update_all(), if you do that,  Then
you won't have to run through the objects and combine their rects.  But
yes, I am worried about performance if you do that.  Once you get to a
couple hundred objects, you will get a hit from doing this, whether you
use the rects or not.

Why do you iterate backwards, BTW?

as a new guy, i just wanted to say that i really love this project and
all of the awesome libraries that you have incorporated into this
project...  ...in awe...

Thank you!  I can't rightly take any praise for the libraries we
incorporate, but thanks.

-Lars
-- 
Lars Clausen <lars raeder dk>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]