Re: Gtk::Stock::CLOSE



Thanks Bob! It did not work, but the intention is what counts.
I think I am following the example in the book as close as possible, but for some reason my Win32 version of Gtkmm is not having the results expected. Perhaps if one of the developers has a look at my problem s/he would be able to tell me if I am the one in the wrong or if there is a prblem with the Win32 port of Gtkmm.
I am using Win32-Gtkmm-2.4.x.

TIA
Bob Caryl escribió:

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?


--
* No puedes ejercer tu fuerza hasta el punto de humillar a otros.
                     - Jean Chretien

* No tienes la libertad de desobedecer a Dios, aun mas si desobedeces a tu Señor no puedes llamarte Su servidor, pues te has convertido en un servidor de Satanás y de tus caprichos y vanos deseos.
                   -Sheykg Muhammad ibn ‘Uthaymeen

* Es increíble como la diminuta semilla de desconfianza y malentendido puede producir una bonanza de odio y muerte.
                 - Jorge Escalante


Ma'assalama! Adiós!  bye!







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