[glade--]Problems with glademm-1.1.1b



 Hi

I tried to use a GtkDialog (with only one OK-Button and a TextEntry ) with glademm-1.1.1b and glade-1.1.1. I did not add any kind of other widget.

That's what I got from glademm.


   struwe home:~/Projects/lcommander > glade-- lcommander.glade
   Unknown library `gnomemm'
   Found pkg-config version 0.12.0
Generating code for gtk 2.0.6 (pkg-config), gtkmm 1.3.18 (pkg-config), [gnomemm 1.2.13 (pkg-config)] Dialog: Unexpected child name 'vbox'
   Dialog: Unexpected child name 'vbox'
   ..
   ..
   Dialog: Unexpected child name 'vbox'
   Dialog: Unexpected child name 'vbox'
Warning: Gtk_Container::AddChild(dialog-vbox2,,dialog2->) with child name vbox,
       Gtk::Dialog::IsSubwidget() might need fixing
   Dialog: Unexpected child name 'vbox'
   Dialog: Unexpected child name 'vbox'
   Oops. Unexpected: no widget as child
   Dialog: Unexpected child name 'vbox'
   Dialog: Unexpected child name 'vbox'
   Oops. Unexpected: no widget as child
   Dialog: Unexpected child name 'vbox'
   Oops. Unexpected: no widget as child
   Dialog: Unexpected child name 'vbox'
   Oops. Unexpected: no widget as child
   ..
   ..


When I compile the created source anyway, I get:

c++ -DHAVE_CONFIG_H -I. -I. -I.. -O3 -march=pentiumpro -I/home/struwe/local/include/gtkmm-2.0 -I/home/struwe/local/lib/gtkmm-2.0/include -I/home/struwe/local/lib/sigc++-1.2/include -I/home/struwe/local/include/sigc++-1.2 -I/usr/local2/include/gtk-2.0 -I/usr/local2/include/glib-2.0 -I/usr/local2/lib/glib-2.0/include -I/usr/local2/lib/gtk-2.0/include -I/usr/local2/include/pango-1.0 -I/usr/X11R6/include -I/usr/local2/include/atk-1.0 -c dialog2_glade.cc
   dialog2_glade.cc: In constructor `dialog2_glade::dialog2_glade()':
   dialog2_glade.cc:23: no matching function for call to `Gtk::HButtonBox::
      HButtonBox(GtkButtonBoxStyle, int)'
/home/struwe/local/include/gtkmm-2.0/gtkmm/buttonbox.h:318: candidates are: Gtk::HButtonBox::HButtonBox(Gtk::ButtonBoxStyle = BUTTONBOX_DEFAULT_STYLE,
      int = BUTTONBOX_DEFAULT)
/home/struwe/local/include/gtkmm-2.0/gtkmm/buttonbox.h:292: Gtk::HButtonBox::HButtonBox(GtkHButtonBox*) /home/struwe/local/include/gtkmm-2.0/gtkmm/buttonbox.h:291: Gtk::HButtonBox::HButtonBox(const Glib::ConstructParams&) /home/struwe/local/include/gtkmm-2.0/gtkmm/buttonbox.h:287: Gtk::HButtonBox::HButtonBox(const Gtk::HButtonBox&)


When I take a look to dialog2_glade.cc I find

Gtk::HButtonBox *dialog_action_area2 = manage(new class Gtk::HButtonBox(GTK_BUTTONBOX_DEFAULT_STYLE, 0));

but right is

Gtk::HButtonBox *dialog_action_area2 = manage(new class Gtk::HButtonBox(Gtk::BUTTONBOX_DEFAULT_STYLE, 0));



When I fix dialog2_galde.cc it is possible to run the programm, but the dialog doesn't show the message or the button and I get an Gtk-Warning:

(lcommander:12369): Gtk-WARNING **: Attempting to add a widget with type gtkmm__GtkVBox to a gtkmm__GtkDialog, but as a GtkBin subclass a gtkmm__GtkDialog can only contain one widget at a time; it already contains a widget of type GtkVBox


I think the namespace problem comes from glademm, but the warning about the vbox might be a glade-2 problem.


Otmar





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