[glade--]Re: dialog problems from format of .glade file
- From: Mark Jones <mark jones106 verizon net>
- To: Mark Jones <mark jones106 verizon net>, <glademm-list gnome org>
- Subject: [glade--]Re: dialog problems from format of .glade file
- Date: Sat, 26 Oct 2002 15:24:05 -0500
>
> From: Mark Jones <mark jones106 verizon net>
> Date: 2002/10/26 Sat PM 02:23:11 CDT
> To: <glademm-list gnome org>
> Subject: dialog problems from format of .glade file
>
> I experienced problems with a dialog and looked further into it. It is due to one line in particular in the .glade file, and I can fake glademm into handling it properly by changing that line.
>
> I am using glade-1.1.2 and just created a project with a dialog, and then added a few things to it, and the tried to create the source with glademm. It gave many warnings about:
>
> Dialog: Unexpected child name 'vbox'
> Warning: Gtk_Container::AddChild(dialog-vbox1,,aboutDialog->) with child name vbox,
> Gtk::Dialog::IsSubwidget() might need fixing
>
> Inside the glade file is:
> <?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
> <!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
>
> <glade-interface>
>
> <widget class="GtkDialog" id="dialog1">
> <property name="visible">True</property>
> <property name="title" translatable="yes">dialog1</property>
> <property name="type">GTK_WINDOW_TOPLEVEL</property>
> <property name="window_position">GTK_WIN_POS_NONE</property>
> <property name="modal">False</property>
> <property name="resizable">True</property>
> <property name="destroy_with_parent">False</property>
> <property name="has_separator">True</property>
>
> <child internal-child="vbox">
> <widget class="GtkVBox" id="dialog-vbox1">
>
> If I change that 2nd to last line to:
> <child>
>
> Then it generates code just fine. Christof, if you want a .glade file to check it out, just let me know.
Actually, it is not generating the code properly afterall. I should have said, it generates code without warnings after changing that <child> line. I end up with an empty dialog essentially no matter which was the .glade <child> line is. If clear the directory of all but the .glade file, and set glade to generate c code, there are no warnings and the dialog comes out correctly upon execution.
The linking errors I saw with a file selection dialog were due to makefiles being out of sync with the souce code files. I cleared the whole directory of all but the .glade, reran glade-- and all was fine, though it does give similar warnings to the above warnings:
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
Warning: Gtk_Container::AddChild(cancel_button1,,fileselection1->) with child name cancel_button,
Gtk::FileSelection::IsSubwidget() might need fixing
FileSelection: Unexpected child name 'ok_button'
Warning: Gtk_Container::AddChild(ok_button1,,fileselection1->) with child name ok_button,
Gtk::FileSelection::IsSubwidget() might need fixing
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
FileSelection: Unexpected child name 'cancel_button'
FileSelection: Unexpected child name 'ok_button'
So, I think that is related to the <child> lines perhaps, because they are similar with the internal child parts in that section of my .glade file. I can provide that .glade file also. But, the file selection dialog does not come up empty after comilation, only the plain dialog with a label and text area in it.
Mark
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]