Re: [g-a-devel] gnome-mag question: what is done in magnifier_check_set_struts



Carlos Eduardo Rodrigues Diogenes wrote:



Can you explain me what is done in the function magnifier_check_set_struts, especially...


One more question: near the final of this function we have an call to gdk_error_trap_pop (); The return of the function doesn't have to be verified, because an erro can happen?

/An Xserver error could happen if something went wrong with setting the strut properties. All X property errors would normally be 'fatal', but we don't want this one to be, and in fact can ignore it, so we push/pop a Gdk error trap here.

It's common practice to push/pop an error trap around direct Xlib API calls like XChangeProperty, inside a gtk+ application.

Bill
/



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