Re: terminate called after throwing an instance of 'Glib::FileError'



Thank you Bastien!! It worked!

On Sun, Jun 19, 2011 at 1:27 PM, Bastien Durel <bastien durel org> wrote:
Le dimanche 19 juin 2011 à 12:36 -0400, Phong Cao a écrit :

> BTW, does anyone know how to create a Gtk::Button that contains Stock
> image. In other words, do you know how to create a GtkStockButton
> without label?
>
This should work :


 Gtk::Window w;
 Gtk::Button b;
 b.property_image() =
   new Gtk::Image(Gtk::Stock::CLOSE, Gtk::ICON_SIZE_BUTTON);
 w.add(b);
 b.show();
 Gtk::Main::run(w);


--
Bastien Durel <bastien durel org>




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