> 
> 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->gtkob
> j()),
> GTK_TOOLBAR_CHILD_BUTTON, 0, "button11", 0, 0, 0, 0, 0)));
>    button12 = new
> Gtk::Button(GTK_BUTTON(gtk_toolbar_append_element(GTK_TOOLBAR(toolbar1->gtkob
> j()),
> GTK_TOOLBAR_CHILD_BUTTON, 0, "button12", 0, 0, 0, 0, 0)));
>    button13 = new
> Gtk::Button(GTK_BUTTON(gtk_toolbar_append_element(GTK_TOOLBAR(toolbar1->gtkob
> j()),
> GTK_TOOLBAR_CHILD_BUTTON, 0, "button13", 0, 0, 0, 0, 0)));
> ----------8<----------8<----------8<----------8<----------

Okay the problem here is that the code way off in the gtk-- kit
use.  You can't arbitrarily make a wrapper for an item because
then multiple wrappers and other problems occur.

wrap() is the method for taking a gtk+ widget and making a
wrapper.

Thus lines like....

    button13 =  wrap ((GtkButton*)
 gtk_toolbar_append_element(GTK_TOOLBAR(toolbar1->gtkobj()), 
   GTK_TOOLBAR_CHILD_BUTTON, 0, "button13", 0, 0, 0, 0, 0))));

or better yet use the toolbar element.

  toolbar1.tools().push_back(Gtk::Toolbar_Helpers::ButtonElem("button13"));



  



> 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?
 
Likely it was because you can't derive like that.  But try the wrap and
see it it is better.  (Is glademm tuned for Gtk-- 1.2.0 yet?)

--Karl

+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to