Hi!
The problem with the toolbar buttons I reported to the glade list seems to
be related to gtkmm, so this crosspost may be helpful. Here's how the
problem can be reproduced:
1) make a hbox and fill it with a handlebox.
2) Put a toolbar in the container, e.g. with 3 containers for buttons
3) add buttons to the empty containers
4) write sourcecode
Compiling the source results in this:
----------8<----------8<----------8<----------8<----------
make
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/lib/gtkmm/include
-I/usr/local/include -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/local/lib/sigc++/include -c PenguMetrics_glade.cc
PenguMetrics_glade.cc: In method
`PenguMetrics_Glade::PenguMetrics_Glade()':
/usr/local/include/gtk--/button.h:54: `Gtk::Button::Button(GtkButton *)'
is protected
PenguMetrics_glade.cc:22: within this context
/usr/local/include/gtk--/button.h:54: `Gtk::Button::Button(GtkButton *)'
is protected
PenguMetrics_glade.cc:23: within this context
/usr/local/include/gtk--/button.h:54: `Gtk::Button::Button(GtkButton *)'
is protected
PenguMetrics_glade.cc:24: within this context
make: *** [PenguMetrics_glade.o] Error 1
----------8<----------8<----------8<----------8<----------
The code (written by glademm) which produces this error is
----------8<----------8<----------8<----------8<----------
button11 =
new
Gtk::Button(GTK_BUTTON(gtk_toolbar_append_element(GTK_TOOLBAR(toolbar1->gtkobj()),
GTK_TOOLBAR_CHILD_BUTTON, 0, "button11", 0, 0, 0, 0, 0)));
button12 = new
Gtk::Button(GTK_BUTTON(gtk_toolbar_append_element(GTK_TOOLBAR(toolbar1->gtkobj()),
GTK_TOOLBAR_CHILD_BUTTON, 0, "button12", 0, 0, 0, 0, 0)));
button13 = new
Gtk::Button(GTK_BUTTON(gtk_toolbar_append_element(GTK_TOOLBAR(toolbar1->gtkobj()),
GTK_TOOLBAR_CHILD_BUTTON, 0, "button13", 0, 0, 0, 0, 0)));
----------8<----------8<----------8<----------8<----------
I moved "Button" from the protected to the public section in
include/gtk--/button.h and this results in an error free compiler run.
Nevertheless, no buttons appear inside the area they should, but the
non-existing buttons are sensitive if I move the mouse over them. Could
anyone of you gurus out there have a look on what's going wrong here?
Bye,
Robert
PS: glade-0.5.7, gtkmm-1.2.0, glademm-0.5.7b
--
+----------------------------------------------------------+
Robert Schwebel, Luedemannstrasse 25, 24114 Kiel, Germany
Public Observatory Rothwesten (near Kassel, Germany)
Phone: +49-431-6794138, email: [EMAIL PROTECTED]
+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.