[gtkmm] how to set a Value?



Hi all,

In gtk-- I was using this:

progressBar_->set_bar_style(GTK_PROGRESS_CONTINUOUS);

while porting I found this in progressbar.h:

template <>
class Value<Gtk::ProgressBarStyle> : public Glib::Value_Enum<Gtk::ProgressBarStyle>
{
public:
  static GType value_type() G_GNUC_CONST;
};

but I don't know how to use the Value<> thing.

How should the new code look?

Thanks

--
Manuel Clos
llanero eresmas net

TCPA y Palladium: http://bulmalug.net/body.phtml?nIdNoticia=1398
TCPA and Palladium: http://www.cl.cam.ac.uk/~rja14/tcpa-faq.html




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