Re: For Win32 developers, only?

Another question is in regards to the example shown in:

In this case a 'xpm' file is used, I have tried to follow this example using 'ico', 'gif' and 'jpg' files, but to no avail.
That is why I tend to think it is a GtkmmWin32 bug, am I wrong?

Bob Caryl escribió:

What you're doing wrong is following my messed up code.

I told you wrong on two levels...

1) Gtk::StockID:: should read Gtk::Stock::
2) There are no Stock ids for CLOSE or HELP.

I am very sorry for my errors.


Jamiil wrote:

Can anyone tell me what is it that I am doing wrong?
Is this a bug in GtkmmWin32 bug?

class Jaime : public Gtk::Window{
Gtk::Button* btnQuit;
Gtk::Button* btnHelp;

virtual ~Jaime();
this->vBox = manage(new Gtk::VBox());
this->btnQuit = namage(new Gtk::Button(Gtk::StockID::CLOSE));
this->btnHelp = manage(new Gtk::Button(Gtk::StockID::HELP));
this->set_size_request(600, 400);

This is a snip of what my code looks like, and this is the error I am
Compiler: Default compiler
Building Makefile: "C:\Jamiil\dev\c++\gtkmm\"
Executing make...
make.exe -f "C:\Jamiil\dev\c++\gtkmm\" all
g++.exe -D__DEBUG__ -c jaime.cpp -o jaime.o -I"C:/GnuWin32/INCLUDE"
-I"C:/GnuWin32/INCLUDE/GTK-2.0" -I"C:/GnuWin32/INCLUDE/GLIB-2.0"
-I"C:/GnuWin32/INCLUDE/ATK-1.0" -I"C:/GnuWin32/INCLUDE/GTKGLEXT-1.0"
-IC:/GnuWin32/include/gtkmm-2.4 -IC:/GnuWin32/lib/gtkmm-2.4/include
-IC:/GnuWin32/include/glibmm-2.4 -IC:/GnuWin32/lib/glibmm-2.4/include
-IC:/GnuWin32/include/gdkmm-2.4 -IC:/GnuWin32/lib/gdkmm-2.4/include
-IC:/GnuWin32/include/pangomm-1.4 -IC:/GnuWin32/include/atkmm-1.6
-IC:/GnuWin32/include/gtk-2.0 -IC:/GnuWin32/include/sigc++-2.0
-IC:/GnuWin32/lib/sigc++-2.0/include -IC:/GnuWin32/include/glib-2.0
-IC:/GnuWin32/lib/glib-2.0/include -IC:/GnuWin32/lib/gtk-2.0/include
-IC:/GnuWin32/include/pango-1.0 -IC:/GnuWin32/include/atk-1.0
-fno-access-control -fexceptions -fverbose-asm -pg -g3

jaime.cpp: In member function `void jme::Jaime::Init()':
jaime.cpp:29: error: `CLOSE' is not a member of `Gtk::StockID'
jaime.cpp:29: error: `namage' undeclared (first use this function)
jaime.cpp:29: error: (Each undeclared identifier is reported only once
for each function it appears in.)
jaime.cpp:30: error: `HELP' is not a member of `Gtk::StockID'
jaime.cpp:30: error: `manage' undeclared (first use this function)

make.exe: *** [jaime.o] Error 1

Execution terminated

Should you need more information, please don't hesitate to ask for it.

* 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]