Re: gtkmm comments



John Taber wrote:
Thanks everyone for the comments and screenshots - I'm converted.

Question though: I cannot get stock icons to compile - I've included the stock.h header and tried "Gtk::BuiltinStockID OK" as well as "Gtk::BuiltStockID::OK" and even Gtk::BuiltinStockID Gtk::Stock::OK - nothing seems to work - can someone help out ? thks.

I don't believe BuiltinStockID is meant to be created by client code, which makes sense - they're built-in. Use Gtk::StockID if you really have to pass stock ids around - it has an implicit conversion from BuiltinStockID. Better yet, don't store stock ID temporaries at all:

mycontainer.add(*Gtk::manage(new Gtk::Button(Gtk::Stock::OK)));

Cheers,
Tim



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