Re: Gtk::Stock::CLOSE



Hey Jamiil,

Lose the calls to set_use_stock, and set_label.  Then it should run fine
(assuming that the path to your image file is good).

Bob

Jamiil wrote:

> I hope someone here will be able to help me.
> I have a program with two buttons; the buttons are supposed to display
> its correspoding icon for closing or help. Neither of the buttons
> display its corresponding icons, and although the porgram compiles I
> get the following message:
> =================================================
>
> Info: resolving Gtk::Stock::CLOSE by linking to
> __imp___ZN3Gtk5Stock5CLOSEE (auto-import)
> Info: resolving Gtk::Stock::HELP by linking to
> __imp___ZN3Gtk5Stock4HELPE (auto-import)
>
> Execution terminated
> Compilation successful
> ===================================================
>
> This are the variables for the help button:
>
> btnHelp->set_use_underline(true);
> btnHelp->set_focus_on_click(true);
> btnHelp->set_use_stock(true);
> btnHelp->set_label("Question");
> btnHelp->add_pixlabel("/icons/Question.ico","_Help");
> btnHelp->signal_clicked().connect( sigc::mem_fun(*this,
> &Jaime::UnderDev) );
>
> Any body?
>



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