Wrapper patch III & last



hi,

Well, finally, i spent my sunday evening on this stuff and here is a nice
patch whih adds painting feature on the wrapper widget taking into
account non inplace components...

The patch can be downloaded at 
http://www.stud.enst.fr/~lacage/linux/stuff/bonobo-patch.tar.gz

Do whatever you wish with it.

Basically, it adds 2 functions to the wrapper API:
gnome_wrapper_set_state
gnome_wrapper_get_state
which should replace 
gnome_wrapper_set_cover
gnome_wrapper_is_covered

And 2 functions to the gnome-view-frame:
gnome_view_frame_activate
gnome_view_frame_deactivate
aimed at replacing the gnome_view_frame_set_covered...

Otherwise, there are a few nifty things to change:
i added GdkGC *gc[2]; in the GnomeWrapper stucture
which should be replaced by GdkGC *gc
and the use of gc[1] in gnome_wrapper_paint
should be replaced simply by gc. (3 occurences)

Hope this is of some use to you.

At least, it works for me here... 
Of course, you need to replace all occurences
of gnome_view_frame_set_covered with 
gnome_view_frame_activate in your components but...


Mathieu

-- 
Mathieu Lacage 
Snailmail: ch 224, 212 Rue de Tolbiac 75013 Paris
email: lacage@email.enst.fr
url: http://www.stud.enst.fr/~lacage



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