Re: [gtk-list] gdk_window_copy_area



> 
> 
> Just noticed this function. It seems to pretty much to be a synonym
> for the more traditional gdk_draw_pixmap. (Admittedly with a more
> intuitive name, but I don't like having two functions that do
  ^^^^^^^^^^^^^^
> the same thing - at the very least one should call the other.)

you said it all...

> When was added? (I don't think it was there a few months ago,
> but I could be wrong...) Would people holler if it was removed?

I guess yes.
As gdk_window and gdk_pixmap are quite well separated, this is usefull
to have both. 
This is not really a technical problem, but calling a window function
to do a pixmap function job will be disturbing...
I don't think it's a good idea to mess up the API just to avoid 10
lines of code because it's duplication...

If you want just one function, just do like in X.
Define explicitly a type like gdk_drawable to write function on both
gdk_window and gdk_pixmap.

This is the price to pay.
Are you willing to pay the price? :)

Patrice.




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