Re: can we override the drawing method of Gtk::Style



On Wed, 2006-05-24 at 19:11 +0200, Murray Cumming wrote:
> On Wed, 2006-05-24 at 19:01 +0530, Yogesh Arora wrote:
> > class NewStyle : public Style
> > {
> >         void draw_box_vfunc(const Glib::RefPtr<Gdk::Window>& window,
> > Gtk::StateType state_type, ShadowType shadow_type, const
> > Gdk::Rectangle& area, Widget* widget, const Glib::ustring& detail, int
> > x, int y, int width, int height);
> > }; 
> 
> This does look a correct virtual function override.
> 
> Are you using a regular installation of gtkmm? Or are you maybe using a
> custom-built version of gtkmm that was built with
> --enable-api-vfuncs=no ?

Please also note that, though I would like to investigate any problem
with this, I doubt that it's a good idea to implement a GTK+ theme
engine with gtkmm. Theme engines need to be very fast very often.

Usually, when someone says that GNOME is slow, they are using some
strange theme engine.

A few extra function calls don't make any difference in an application
that spends most of it's time waiting for the user, but you might notice
it in a theme engine. However, I haven't tried it, and guessing is no
way to do optimisation.


-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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