[Xfc-dev] [SPAMKLASSAT av SU] [howto/html/entry.html] Gtk::StockButton ?
Sylvain Vedrenne
sylvain.vedrenne at free.fr
Wed Mar 7 22:30:02 CET 2007
Hi list,
On this page
| [1] |http://xfc.xfce.org/docs/howto/html/entry.html
entry.cc produces an error at compilation:
"
entry.cc: In constructor ‘EntryWindow::EntryWindow()’:
entry.cc:42: error: expected type-specifier
entry.cc:42: error: cannot convert ‘int*’ to ‘Xfc::Gtk::Button*’ in
initialization
entry.cc:42: error: expected ‘,’ or ‘;’
make: *** [entry] Erreur 1
"
There doesn't seem to be a class Xfc::Gtk::StockButton,
as can be checked on this page
http://xfc.xfce.org/docs/reference/html/classXfc_1_1Gtk_1_1Button.html
Do you confirm ?
So, if the line
| Gtk::Button *button = new Gtk::StockButton(GTK_STOCK_CLOSE);
is replaced by:
|| Gtk::Button *button = new Gtk::Button(GTK_STOCK_CLOSE);
then the compilation completes, but the button doesn't have the expected
aspect
shown at the bottom of page [1]...|
Do you know what is the correct code to do that ?
Thanks in advance.
--
Sylvain
http://sylvano.esperanto.free.fr
More information about the Xfc-dev
mailing list