X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fwidget.h;h=d5bc0ff04c232504a657275b956b9f14c3ec36de;hb=91997dd;hp=2fdc68c34c778e34f4ebf72ba237921eeb2f54fb;hpb=deb15ee122f963ca41121e8358d5845401ac43ca;p=libs%2Fgltk.git diff --git a/source/widget.h b/source/widget.h index 2fdc68c..d5bc0ff 100644 --- a/source/widget.h +++ b/source/widget.h @@ -47,7 +47,6 @@ public: sigc::signal signal_ungrab_pointer; protected: - const Resources &res; Geometry geom; std::string style_name; const Style *style; @@ -57,7 +56,7 @@ protected: Container *parent; std::string tooltip; - Widget(const Resources &); + Widget(); public: virtual ~Widget(); @@ -111,6 +110,8 @@ protected: */ void update_style(); + static void update_style(Widget &); + /** Sets the widget's parent Panel. The widget must be unparented when calling this function with a nonzero parameter. @@ -120,7 +121,7 @@ protected: /** A helper function to set the parent of another widget. */ - void set_parent(Widget &, Container *); + static void set_parent(Widget &, Container *); // More events virtual void on_geometry_change() { }