Discussion:
please help: bug: glade2 file conversion to glade3 failed
Saku Masukita
2009-11-22 16:53:59 UTC
Permalink
Hello,

I am running ubuntu 9.04 and wanted to use glade
so I ran the following command at a shell prompt:

$ sudo apt-get install glade-3

I have an old glade2 file from November of 2004
and would like to convert it to the glade3 file format
but for whatever reason the python conversion tool
which comes with glade3 is failing to work.

$ libglade-convert foo.glade
Traceback (most recent call last):
File "/usr/bin/libglade-convert", line 1212, in <module>
main()
File "/usr/bin/libglade-convert", line 1209, in main
handle_file(args[0])
File "/usr/bin/libglade-convert", line 1172, in handle_file
check_widget(widgetdef, requireslist)
File "/usr/bin/libglade-convert", line 1148, in check_widget
elif widget['class'][:5] == 'Gnome' and 'gnome' not in requirelist:
TypeError: 'NoneType' object is unsubscriptable

I am not sure what is causing this.

The glade 2 file which is causing these errors can be found at:

http://whm.sourceforge.net/foo.glade

Thank you for your help,

Hopefully libglade-converter can be fixed to address this problem,

Thanks,

Saku Masukita
Tristan Van Berkom
2009-11-22 17:11:52 UTC
Permalink
Hello.

Glade does not come with any conversion script.

Just make sure you have the gnome plugin for Glade installed
on your system and then try to load the file directly in Glade.
From there, you will probably want to use GtkBuilder, for
that you will first have to figure out how to eliminate the
deprecated libgnomeui widgets from your project, then
convert the project format in the preferences.

Cheers,
-Tristan

On Sun, Nov 22, 2009 at 2:53 PM, Saku Masukita
Hello,
I am running ubuntu 9.04 and wanted to use glade
$ sudo apt-get install glade-3
I have an old glade2 file from November of 2004
and would like to convert it to the glade3 file format
but for whatever reason the python conversion tool
which comes with glade3 is failing to work.
$ libglade-convert foo.glade
  File "/usr/bin/libglade-convert", line 1212, in <module>
    main()
  File "/usr/bin/libglade-convert", line 1209, in main
    handle_file(args[0])
  File "/usr/bin/libglade-convert", line 1172, in handle_file
    check_widget(widgetdef, requireslist)
  File "/usr/bin/libglade-convert", line 1148, in check_widget
TypeError: 'NoneType' object is unsubscriptable
I am not sure what is causing this.
http://whm.sourceforge.net/foo.glade
Thank you for your help,
Hopefully libglade-converter can be fixed to address this problem,
Thanks,
Saku Masukita
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Saku Masukita
2009-11-23 16:29:39 UTC
Permalink
On Sun, Nov 22, 2009 at 5:11 PM, Tristan Van Berkom <
Post by Tristan Van Berkom
Hello.
Glade does not come with any conversion script.
Well, apparently the script comes from a package
called libglade2-dev as the following output shows:

$ dpkg-query -S /usr/bin/libglade-convert
libglade2-dev: /usr/bin/libglade-convert

The list of files which are part of this ubuntu package
are the following which seem to include version 2 of
a static library called libglade which I presume is
used to create executable files which parse a
glade XML file when run. The list is reported
below:

$ dpkg-query -L libglade2-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libglade2-dev
/usr/share/doc/libglade2-dev/copyright
/usr/share/doc/libglade2-dev/examples
/usr/share/doc/libglade2-dev/examples/bonobo.glade
/usr/share/doc/libglade2-dev/examples/simple.glade.gz
/usr/share/doc/libglade2-dev/examples/first.glade
/usr/share/doc/libglade2-dev/examples/example.glade.gz
/usr/share/doc-base
/usr/share/doc-base/libglade2-dev
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/libglade-convert.1.gz
/usr/share/gtk-doc
/usr/share/gtk-doc/html
/usr/share/gtk-doc/html/libglade
/usr/share/gtk-doc/html/libglade/GladeXML.html
/usr/share/gtk-doc/html/libglade/home.png
/usr/share/gtk-doc/html/libglade/index.html
/usr/share/gtk-doc/html/libglade/index.sgml
/usr/share/gtk-doc/html/libglade/left.png
/usr/share/gtk-doc/html/libglade/libglade-Libglade-Build.html
/usr/share/gtk-doc/html/libglade/libglade-Libglade-Initialisation.html
/usr/share/gtk-doc/html/libglade/libglade-Libglade-SAX-Parser.html
/usr/share/gtk-doc/html/libglade/libglade-dtd-exceptions.html
/usr/share/gtk-doc/html/libglade/libglade-dtd.html
/usr/share/gtk-doc/html/libglade/libglade-embedding.html
/usr/share/gtk-doc/html/libglade/libglade-extending.html
/usr/share/gtk-doc/html/libglade/libglade-i18n.html
/usr/share/gtk-doc/html/libglade/libglade-lib.html
/usr/share/gtk-doc/html/libglade/libglade-modules.html
/usr/share/gtk-doc/html/libglade/libglade-notes.html
/usr/share/gtk-doc/html/libglade/libglade.devhelp
/usr/share/gtk-doc/html/libglade/libglade.devhelp2
/usr/share/gtk-doc/html/libglade/right.png
/usr/share/gtk-doc/html/libglade/style.css
/usr/share/gtk-doc/html/libglade/up.png
/usr/include
/usr/include/libglade-2.0
/usr/include/libglade-2.0/glade
/usr/include/libglade-2.0/glade/glade.h
/usr/include/libglade-2.0/glade/glade-init.h
/usr/include/libglade-2.0/glade/glade-xml.h
/usr/include/libglade-2.0/glade/glade-build.h
/usr/include/libglade-2.0/glade/glade-parser.h
/usr/lib
/usr/lib/libglade-2.0.a
/usr/lib/libglade-2.0.la
/usr/lib/pkgconfig
/usr/lib/pkgconfig/libglade-2.0.pc
/usr/bin
/usr/bin/libglade-convert
/usr/share/doc/libglade2-dev/README
/usr/share/doc/libglade2-dev/AUTHORS
/usr/share/doc/libglade2-dev/NEWS.gz
/usr/share/doc/libglade2-dev/changelog.Debian.gz
/usr/lib/libglade-2.0.so
$

However when I look at the list of installed packages
related to glade I get the all of the following:

BEGIN OUTPUT +++++++++++++++++++++++++++++

$ dpkg-query -l '*glade*'
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name
Version Description
+++-========================================-========================================-================================================================================================
un glade
<none> (no description available)
ii glade-3
3.6.3-0ubuntu1 GTK+ 2 User Interface Builder
un glade-gnome
<none> (no description available)
un glade-gnome-3
<none> (no description available)
ii libglade2-0
1:2.6.4-1 library to load .glade files at
runtime
ii libglade2-dev
1:2.6.4-1 development files for libglade
ii libglade2.0-cil
2.12.8-2 CLI binding for the Glade libraries
2.6
un libgladeui-1-1
<none> (no description available)
un libgladeui-1-2
<none> (no description available)
un libgladeui-1-3
<none> (no description available)
un libgladeui-1-4
<none> (no description available)
un libgladeui-1-5
<none> (no description available)
un libgladeui-1-7
<none> (no description available)
un libgladeui-1-8
<none> (no description available)
ii libgladeui-1-9
3.6.3-0ubuntu1 GTK+ User Interface Build core
library
un python-glade
<none> (no description available)
ii python-glade2
2.14.1-1ubuntu1 GTK+ bindings: Glade support
un python2.3-glade2
<none> (no description available)
un python2.4-glade2
<none> (no description available)
un python2.5-glade2
<none> (no description available)
un python2.6-glade2
<none> (no description available)

END OUTPUT +++++++++++++++++++++++++++++

I am puzzled with the fact that on the download site there are only
these two directories which seem pertinent to modern glade /
libglade development but there is no libgladeui package. So
I do not understand what the difference is between libglade
and libgladeui. What is libgladeui?

http://ftp.gnome.org/pub/GNOME/sources/glade3/3.6/
http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/
Post by Tristan Van Berkom
Just make sure you have the gnome plugin for Glade installed
on your system and then try to load the file directly in Glade.
Well, as far as I remember I do not remember using any
gnome-specific widgets which are not part of GTK inside
my glade 2 XML file but I am going to try your suggestion
just in case...

$ sudo apt-get install glade-gnome

No luck with this, as after such apt-get installation I still
get the same error messages when trying to use
libglade-convert to convert my glade 2 XML file
to a glade 3 XML file.

So let us try and install glade-gnome-2 instead...

$ sudo apt-get install glade-gnome-2

And let us also try and install glade-gnome-3 ...

$ sudo apt-get install glade-gnome-3

Well, even after these installs I still get the
same error message when I try to convert
my glade 2 XML file to a glade 3 XML file,
exactly the same as reported originally.

Traceback (most recent call last):
File "/usr/bin/libglade-convert", line 1212, in <module>
main()
File "/usr/bin/libglade-convert", line 1209, in main
handle_file(args[0])
File "/usr/bin/libglade-convert", line 1172, in handle_file
check_widget(widgetdef, requireslist)
File "/usr/bin/libglade-convert", line 1148, in check_widget
elif widget['class'][:5] == 'Gnome' and 'gnome' not in requirelist:
TypeError: 'NoneType' object is unsubscriptable
Post by Tristan Van Berkom
From there, you will probably want to use GtkBuilder, for
that you will first have to figure out how to eliminate the
deprecated libgnomeui widgets from your project, then
convert the project format in the preferences.
What exactly is libgnomeui? I am stuck and I am not sure
about how to proceed with the XML glade 2 file conversion
to glade 3 XML.

Thank you for your help
with the conversion,

Saku
Post by Tristan Van Berkom
Cheers,
-Tristan
On Sun, Nov 22, 2009 at 2:53 PM, Saku Masukita
Post by Saku Masukita
Hello,
I am running ubuntu 9.04 and wanted to use glade
$ sudo apt-get install glade-3
I have an old glade2 file from November of 2004
and would like to convert it to the glade3 file format
but for whatever reason the python conversion tool
which comes with glade3 is failing to work.
$ libglade-convert foo.glade
File "/usr/bin/libglade-convert", line 1212, in <module>
main()
File "/usr/bin/libglade-convert", line 1209, in main
handle_file(args[0])
File "/usr/bin/libglade-convert", line 1172, in handle_file
check_widget(widgetdef, requireslist)
File "/usr/bin/libglade-convert", line 1148, in check_widget
TypeError: 'NoneType' object is unsubscriptable
I am not sure what is causing this.
http://whm.sourceforge.net/foo.glade
Thank you for your help,
Hopefully libglade-converter can be fixed to address this problem,
Thanks,
Saku Masukita
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
Tristan Van Berkom
2009-11-23 16:41:07 UTC
Permalink
On Mon, Nov 23, 2009 at 2:29 PM, Saku Masukita
Post by Saku Masukita
On Sun, Nov 22, 2009 at 5:11 PM, Tristan Van Berkom
Post by Tristan Van Berkom
Hello.
Glade does not come with any conversion script.
Well, apparently the script comes from a package
$ dpkg-query -S /usr/bin/libglade-convert
libglade2-dev: /usr/bin/libglade-convert
Thats an old conversion script to convert files from
Glade 1 format to a format readable by libglade.

By now libglade is deprecated and people are migrating
to GtkBuilder (which essentially does what libglade did,
except has some advantages such as doing it natively
from the GTK+ widget code).

You dont need a conversion tool to load a file created
with Glade 2, in Glade 3 - just open the file in Glade 3.

You will encounter a bug where everything seems horizontally
oriented (because the file was created with Glade 2 in an
old version, it wont output the orientation property needed
to tell VBoxes that they need to be vertical, sorry about that).

libgnomeui is an old library that does lots of gnome specific
stuff, it pulls in lots of dependencies you dont want to build
nowadays and most of the widgets if not all, have equal
coverage in GTK+ by now (i.e. its another old and deprecated
widget library).

You can at least start by loading the file in Glade, fixing
the orientation property where you need to (search vbox
in the search entry should help), then convert it to GtkBuilder
(use the project preferences dialog) and see what deprecated
widgets dissapear in the conversion - should give you an idea
of what widget types you need to replace to move on to GtkBuilder.

Cheers,
-Tristan
Post by Saku Masukita
The list of files which are part of this ubuntu package
are the following which seem to include version 2 of
a static library called libglade which I presume is
used to create executable files which parse a
glade XML file when run. The list is reported
$ dpkg-query -L libglade2-dev
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libglade2-dev
/usr/share/doc/libglade2-dev/copyright
/usr/share/doc/libglade2-dev/examples
/usr/share/doc/libglade2-dev/examples/bonobo.glade
/usr/share/doc/libglade2-dev/examples/simple.glade.gz
/usr/share/doc/libglade2-dev/examples/first.glade
/usr/share/doc/libglade2-dev/examples/example.glade.gz
/usr/share/doc-base
/usr/share/doc-base/libglade2-dev
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/libglade-convert.1.gz
/usr/share/gtk-doc
/usr/share/gtk-doc/html
/usr/share/gtk-doc/html/libglade
/usr/share/gtk-doc/html/libglade/GladeXML.html
/usr/share/gtk-doc/html/libglade/home.png
/usr/share/gtk-doc/html/libglade/index.html
/usr/share/gtk-doc/html/libglade/index.sgml
/usr/share/gtk-doc/html/libglade/left.png
/usr/share/gtk-doc/html/libglade/libglade-Libglade-Build.html
/usr/share/gtk-doc/html/libglade/libglade-Libglade-Initialisation.html
/usr/share/gtk-doc/html/libglade/libglade-Libglade-SAX-Parser.html
/usr/share/gtk-doc/html/libglade/libglade-dtd-exceptions.html
/usr/share/gtk-doc/html/libglade/libglade-dtd.html
/usr/share/gtk-doc/html/libglade/libglade-embedding.html
/usr/share/gtk-doc/html/libglade/libglade-extending.html
/usr/share/gtk-doc/html/libglade/libglade-i18n.html
/usr/share/gtk-doc/html/libglade/libglade-lib.html
/usr/share/gtk-doc/html/libglade/libglade-modules.html
/usr/share/gtk-doc/html/libglade/libglade-notes.html
/usr/share/gtk-doc/html/libglade/libglade.devhelp
/usr/share/gtk-doc/html/libglade/libglade.devhelp2
/usr/share/gtk-doc/html/libglade/right.png
/usr/share/gtk-doc/html/libglade/style.css
/usr/share/gtk-doc/html/libglade/up.png
/usr/include
/usr/include/libglade-2.0
/usr/include/libglade-2.0/glade
/usr/include/libglade-2.0/glade/glade.h
/usr/include/libglade-2.0/glade/glade-init.h
/usr/include/libglade-2.0/glade/glade-xml.h
/usr/include/libglade-2.0/glade/glade-build.h
/usr/include/libglade-2.0/glade/glade-parser.h
/usr/lib
/usr/lib/libglade-2.0.a
/usr/lib/libglade-2.0.la
/usr/lib/pkgconfig
/usr/lib/pkgconfig/libglade-2.0.pc
/usr/bin
/usr/bin/libglade-convert
/usr/share/doc/libglade2-dev/README
/usr/share/doc/libglade2-dev/AUTHORS
/usr/share/doc/libglade2-dev/NEWS.gz
/usr/share/doc/libglade2-dev/changelog.Debian.gz
/usr/lib/libglade-2.0.so
$
However when I look at the list of installed packages
BEGIN OUTPUT +++++++++++++++++++++++++++++
$ dpkg-query -l '*glade*'
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
uppercase=bad)
||/ Name
Version                                  Description
+++-========================================-========================================-================================================================================================
un  glade
<none>                                   (no description available)
ii  glade-3
3.6.3-0ubuntu1                           GTK+ 2 User Interface Builder
un  glade-gnome
<none>                                   (no description available)
un  glade-gnome-3
<none>                                   (no description available)
ii  libglade2-0
1:2.6.4-1                                library to load .glade files at
runtime
ii  libglade2-dev
1:2.6.4-1                                development files for libglade
ii  libglade2.0-cil
2.12.8-2                                 CLI binding for the Glade libraries
2.6
un  libgladeui-1-1
<none>                                   (no description available)
un  libgladeui-1-2
<none>                                   (no description available)
un  libgladeui-1-3
<none>                                   (no description available)
un  libgladeui-1-4
<none>                                   (no description available)
un  libgladeui-1-5
<none>                                   (no description available)
un  libgladeui-1-7
<none>                                   (no description available)
un  libgladeui-1-8
<none>                                   (no description available)
ii  libgladeui-1-9
3.6.3-0ubuntu1                           GTK+ User Interface Build core
library
un  python-glade
<none>                                   (no description available)
ii  python-glade2
2.14.1-1ubuntu1                          GTK+ bindings: Glade support
un  python2.3-glade2
<none>                                   (no description available)
un  python2.4-glade2
<none>                                   (no description available)
un  python2.5-glade2
<none>                                   (no description available)
un  python2.6-glade2
<none>                                   (no description available)
END OUTPUT +++++++++++++++++++++++++++++
I am puzzled with the fact that on the download site there are only
these two directories which seem pertinent to modern glade /
libglade development but there is no libgladeui package. So
I do not understand what the difference is between libglade
and libgladeui. What is libgladeui?
http://ftp.gnome.org/pub/GNOME/sources/glade3/3.6/
http://ftp.gnome.org/pub/GNOME/sources/libglade/2.6/
Post by Tristan Van Berkom
Just make sure you have the gnome plugin for Glade installed
on your system and then try to load the file directly in Glade.
Well, as far as I remember I do not remember using any
gnome-specific widgets which are not part of GTK inside
my glade 2 XML file but I am going to try your suggestion
just in case...
$ sudo apt-get install glade-gnome
No luck with this, as after such apt-get installation I still
get the same error messages when trying to use
libglade-convert to convert my glade 2 XML file
to a glade 3 XML file.
So let us try and install glade-gnome-2 instead...
$ sudo apt-get install glade-gnome-2
And let us also try and install glade-gnome-3 ...
$ sudo apt-get install glade-gnome-3
Well, even after these installs I still get the
same error message when I try to convert
my glade 2 XML file to a glade 3 XML file,
exactly the same as reported originally.
  File "/usr/bin/libglade-convert", line 1212, in <module>
    main()
  File "/usr/bin/libglade-convert", line 1209, in main
    handle_file(args[0])
  File "/usr/bin/libglade-convert", line 1172, in handle_file
    check_widget(widgetdef, requireslist)
  File "/usr/bin/libglade-convert", line 1148, in check_widget
TypeError: 'NoneType' object is unsubscriptable
Post by Tristan Van Berkom
From there, you will probably want to use GtkBuilder, for
that you will first have to figure out how to eliminate the
deprecated libgnomeui widgets from your project, then
convert the project format in the preferences.
What exactly is libgnomeui? I am stuck and I am not sure
about how to proceed with the XML glade 2 file conversion
to glade 3 XML.
Thank you for your help
with the conversion,
Saku
Post by Tristan Van Berkom
Cheers,
       -Tristan
On Sun, Nov 22, 2009 at 2:53 PM, Saku Masukita
Post by Saku Masukita
Hello,
I am running ubuntu 9.04 and wanted to use glade
$ sudo apt-get install glade-3
I have an old glade2 file from November of 2004
and would like to convert it to the glade3 file format
but for whatever reason the python conversion tool
which comes with glade3 is failing to work.
$ libglade-convert foo.glade
  File "/usr/bin/libglade-convert", line 1212, in <module>
    main()
  File "/usr/bin/libglade-convert", line 1209, in main
    handle_file(args[0])
  File "/usr/bin/libglade-convert", line 1172, in handle_file
    check_widget(widgetdef, requireslist)
  File "/usr/bin/libglade-convert", line 1148, in check_widget
TypeError: 'NoneType' object is unsubscriptable
I am not sure what is causing this.
http://whm.sourceforge.net/foo.glade
Thank you for your help,
Hopefully libglade-converter can be fixed to address this problem,
Thanks,
Saku Masukita
_______________________________________________
http://lists.ximian.com/mailman/listinfo/glade-devel
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Saku Masukita
2009-11-24 16:06:37 UTC
Permalink
On Mon, Nov 23, 2009 at 4:41 PM, Tristan Van Berkom <
Post by Tristan Van Berkom
On Mon, Nov 23, 2009 at 2:29 PM, Saku Masukita
Post by Saku Masukita
Well, apparently the script comes from a package
$ dpkg-query -S /usr/bin/libglade-convert
libglade2-dev: /usr/bin/libglade-convert
Thats an old conversion script to convert files from
Glade 1 format to a format readable by libglade.
By now libglade is deprecated and people are migrating
to GtkBuilder (which essentially does what libglade did,
except has some advantages such as doing it natively
from the GTK+ widget code).
OK so that might as well mean that I can uninstall libglade
completely from my Ubuntu 9.04 Linux system.
Post by Tristan Van Berkom
You dont need a conversion tool to load a file created
with Glade 2, in Glade 3 - just open the file in Glade 3.
You will encounter a bug where everything seems horizontally
oriented (because the file was created with Glade 2 in an
old version, it wont output the orientation property needed
to tell VBoxes that they need to be vertical, sorry about that).
Too bad this could not have been fixed in the code.
What are the reasons for it not working out of the box?
Are there some widget property incompatibilities?
Post by Tristan Van Berkom
libgnomeui is an old library that does lots of gnome specific
stuff, it pulls in lots of dependencies you dont want to build
nowadays and most of the widgets if not all, have equal
coverage in GTK+ by now (i.e. its another old and deprecated
widget library).
OK so it looks like I will be uninstalling libgnomeui as well.
I never liked the idea of gnome-specific widgets which cannot
then be ported to other platforms anyway.

You can at least start by loading the file in Glade, fixing
Post by Tristan Van Berkom
the orientation property where you need to (search vbox
in the search entry should help), then convert it to GtkBuilder
(use the project preferences dialog) and see what deprecated
widgets dissapear in the conversion - should give you an idea
of what widget types you need to replace to move on to GtkBuilder.
Looks like I am going to have to learn how to use GtkBuilder
to port my C code which worked with glade 2 code to C code
that works with glade 3.

Well, when I try to open the file http://whm.sf.net/foo.glade
with glade-2 I am successful but with glade-3 I get a
segmentation fault:

GladeUI-Message: No displayable values for property GtkScaleButton::size
GladeUI-Message: No displayable values for property GtkImage::icon-size

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-sizegroup' was
found for object class 'GtkSizeGroup'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-accelgroup'
was found for object class 'GtkAccelGroup'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-adjustment'
was found for object class 'GtkAdjustment'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-uimanager' was
found for object class 'GtkUIManager'.

(glade-3:4487): GladeUI-WARNING **: No icon named
'widget-gtk-treemodelfilter' was found for object class
'GtkTreeModelFilter'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-treemodelsort'
was found for object class 'GtkTreeModelSort'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-treeselection'
was found for object class 'GtkTreeSelection'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-statusicon'
was found for object class 'GtkStatusIcon'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-textbuffer'
was found for object class 'GtkTextBuffer'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-texttag' was
found for object class 'GtkTextTag'.
GladeUI-Message: No displayable values for property GtkTextTag::direction

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-texttagtable'
was found for object class 'GtkTextTagTable'.

(glade-3:4487): GladeUI-WARNING **: No icon named 'widget-gtk-filefilter'
was found for object class 'GtkFileFilter'.
GladeUI-Message: 1 missing displayable value for
GnomeDateEdit::dateedit-flags
GladeUI-Message: No displayable values for property
GnomeIconList::selection-mode
Segmentation fault

Obviously something needs to be done for me to be able to open the
file with glade-3, but I am not sure exactly what. Any ideas?

----------------------------------------------------------------------------------------------------
APART FROM THIS...

By the way, is the book "The Official Gnome 2 Developer's Guide"
as in the links appearing below now an outdated book?

http://www.amazon.com/gp/search?index=books&linkCode=qs&keywords=1593270305
http://developer.novell.com/wiki/index.php/The_Official_Gnome_2_Developer%27s_Guide

Is there better more up-to-date books on Gtk/Glib/Glade deve lopment
which are more relevant nowadays (given that as you mentioned the
development libraries are now more gnome-independent?)

Looks like nowadays the reference books on this subject are:

- Foundations of GTK+ Development (Expert's Voice in Open Source)
(Paperback)
by Andrew Krause

and

- Gtk+ Programming in C (Paperback)
by Syd Logan

but I am not sure about whether any of these cover GtkBuilder and glade.

Any suggestions or recommendations on selecting a proper place
to work with are very welcome (I have used Gtk and Glib in the past
but now I am somewhat rusty on it and need something to go by in
order to upgrade properly),

Thank you for your help and feedback,

Saku Masukita
Tristan Van Berkom
2009-11-24 16:39:43 UTC
Permalink
On Tue, Nov 24, 2009 at 2:06 PM, Saku Masukita
Post by Saku Masukita
On Mon, Nov 23, 2009 at 4:41 PM, Tristan Van Berkom
Post by Tristan Van Berkom
On Mon, Nov 23, 2009 at 2:29 PM, Saku Masukita
Post by Saku Masukita
Well, apparently the script comes from a package
$ dpkg-query -S /usr/bin/libglade-convert
libglade2-dev: /usr/bin/libglade-convert
Thats an old conversion script to convert files from
Glade 1 format to a format readable by libglade.
By now libglade is  deprecated and people are migrating
to GtkBuilder (which essentially does what libglade did,
except has some advantages such as doing it natively
from the GTK+ widget code).
OK so that might as well mean that I can uninstall libglade
completely from my Ubuntu 9.04 Linux system.
Not exactly, it means that eventually this can be the case
and it will be phased out, but surely there is plenty of code
still using libglade on your system.
Post by Saku Masukita
Post by Tristan Van Berkom
You dont need a conversion tool to load a file created
with Glade 2, in Glade 3 - just open the file in Glade 3.
You will encounter a bug where everything seems horizontally
oriented (because the file was created with Glade 2 in an
old version, it wont output the orientation property needed
to tell VBoxes that they need to be vertical, sorry about that).
Too bad this could not have been fixed in the code.
 What are the reasons for it not working out of the box?
Are there some widget property incompatibilities?
Yes the full description is here:
https://bugzilla.gnome.org/show_bug.cgi?id=587256
Post by Saku Masukita
Post by Tristan Van Berkom
libgnomeui is an old library that does lots of gnome specific
stuff, it pulls in lots of dependencies you dont want to build
nowadays and most of the widgets if not all, have equal
coverage in GTK+ by now (i.e. its another old and deprecated
widget library).
OK so it looks like I will be uninstalling libgnomeui as well.
I never liked the idea of gnome-specific widgets which cannot
then be ported to other platforms anyway.
Post by Tristan Van Berkom
You can at least start by loading the file in Glade, fixing
the orientation property where you need to (search vbox
in the search entry should help), then convert it to GtkBuilder
(use the project preferences dialog) and see what deprecated
widgets dissapear in the conversion - should give you an idea
of what widget types you need to replace to move on to GtkBuilder.
Looks like I am going to have to learn how to use GtkBuilder
to port my C code which worked with glade 2 code to C code
that works with glade 3.
Yes, generally that just means replacing calls to glade_xml_new()
with gtk_builder_add_from_file(), and then glade_xml_get_widget()
with gtk_builder_get_object() (i.e. the api is very small).

The bulk of your work to use GtkBuilder would be to get rid
of the gnome widgets essentially, which is something you
would want to do anyway for new code.
Post by Saku Masukita
Obviously something needs to be done for me to be able to open the
file with glade-3, but I am not sure exactly what. Any ideas?
The warnings are normal (as we actually need people to contribute
artwork for those missing icons), the segfault I cant tell by looking into
your file, but I was able to do something with it.

After looking at the segfault (which I didnt reproduce because I didnt
build the gnome catalog here...) I found that you do not use any gnome
widgets (good first of all for you), only gnome stock icons.

So, after removing the <requires/> line from your Glade file I loaded
up with no segfault, but horizontally.

To fix the horizontalness, I'm not sure if someone attached a script
to the bug that does that (since your file is considerably large and
a PITA to fix by hand), fixing it by hand means fixing the orientation
property of each vbox/vpaned etc in the project.

I got a bunch of errors from CList, seems support for CList somehow
got broken in Glade, however your file still seems to load and save ok,
Im not sure whats going on with your CList children (ofcourse you will
have to drop deprecated GtkCList anyway to move on to GtkBuilder).

In terms of litterature I think there is not much, its better for you to
stick with some tutorials, reference manuals, the source and irc I
would think.

Cheers,
-Tristan
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Saku Masukita
2009-11-24 18:34:25 UTC
Permalink
On Tue, Nov 24, 2009 at 4:39 PM, Tristan Van Berkom <
Post by Tristan Van Berkom
Yes, generally that just means replacing calls to glade_xml_new()
with gtk_builder_add_from_file(), and then glade_xml_get_widget()
with gtk_builder_get_object() (i.e. the api is very small).
The bulk of your work to use GtkBuilder would be to get rid
of the gnome widgets essentially, which is something you
would want to do anyway for new code.
Post by Saku Masukita
Obviously something needs to be done for me to be able to open the
file with glade-3, but I am not sure exactly what. Any ideas?
The warnings are normal (as we actually need people to contribute
artwork for those missing icons), the segfault I cant tell by looking into
your file, but I was able to do something with it.
After looking at the segfault (which I didnt reproduce because I didnt
build the gnome catalog here...) I found that you do not use any gnome
widgets (good first of all for you), only gnome stock icons.
So, after removing the <requires/> line from your Glade file I loaded
up with no segfault, but horizontally.
Yes, I was in fact aware of the fact that I had not used any gnome-specific
code. So I cannot really explain to myself why the glade 2 GUI builder had
placed the <requires lib="gnome"/> XML element in the XML file but I
guess glade 2 is history now so it's probably not worth fixing such bug.

Actually the reason might seem to be the fact that I have used some
gnome icons in the glade 2 XML file despite not using any actual widgets.
Here are the gnome icons from the glade 2 XML file which I seem to have
been using (seem like these icons correspond to the stock property):

stock property:
gnome-stock-text-numbered-list
gnome-stock-multiple-file
gnome-stock-mail-new
gnome-stock-about
gnome-stock-book-blue
gnome-stock-book-yellow
gnome-stock-book-red
gnome-stock-book-green

So, I'm not sure what the corresponding icons would be in
the most recent Gtk icons if any at all. But I guess this is
what I need to fix. Otherwise can I not just simply copy
these gnome icons to my source code tree and somehow
import them into glade-3 from there?

Otherwise what should I do? Should I just delete these lines
to get it to work? Because right now despite deleting the
<requires lib="gnome"/> tag I still get the segmentation
fault.

Plus I just don't understand what these complaints about
GnomeDateEdit which I don't see used within the glade 2
file are. And the names of the icons from the warnings do
not appear inside the glade 2 file either. I am confused.

I guess 4034 is just an error code (apart from the segfault).

-------------------------------------------------------------------------------------------------
GladeUI-Message: No displayable values for property GtkScaleButton::size
GladeUI-Message: No displayable values for property GtkImage::icon-size

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-sizegroup' was
found for object class 'GtkSizeGroup'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-accelgroup'
was found for object class 'GtkAccelGroup'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-adjustment'
was found for object class 'GtkAdjustment'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-uimanager' was
found for object class 'GtkUIManager'.

(glade-3:4034): GladeUI-WARNING **: No icon named
'widget-gtk-treemodelfilter' was found for object class
'GtkTreeModelFilter'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-treemodelsort'
was found for object class 'GtkTreeModelSort'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-treeselection'
was found for object class 'GtkTreeSelection'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-statusicon'
was found for object class 'GtkStatusIcon'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-textbuffer'
was found for object class 'GtkTextBuffer'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-texttag' was
found for object class 'GtkTextTag'.
GladeUI-Message: No displayable values for property GtkTextTag::direction

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-texttagtable'
was found for object class 'GtkTextTagTable'.

(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-filefilter'
was found for object class 'GtkFileFilter'.
GladeUI-Message: 1 missing displayable value for
GnomeDateEdit::dateedit-flags
GladeUI-Message: No displayable values for property
GnomeIconList::selection-mode
Segmentation fault
-------------------------------------------------------------------------------------------------


To fix the horizontalness, I'm not sure if someone attached a script
Post by Tristan Van Berkom
to the bug that does that (since your file is considerably large and
a PITA to fix by hand), fixing it by hand means fixing the orientation
property of each vbox/vpaned etc in the project.
Yeah, maybe a script is needed, but since I don't really understand what
the replacements should be I am also not sure about how to write such
script.
Post by Tristan Van Berkom
I got a bunch of errors from CList, seems support for CList somehow
got broken in Glade, however your file still seems to load and save ok,
Im not sure whats going on with your CList children (ofcourse you will
have to drop deprecated GtkCList anyway to move on to GtkBuilder).
So what do I use in place of GtkCList or CList?
Post by Tristan Van Berkom
In terms of litterature I think there is not much, its better for you to
stick with some tutorials, reference manuals, the source and irc I
would think.
Thank, I will have a look at these as well, but what other modifications
did you make to the glade file to get it to work?

Thanks,

Saku Masukita
Tristan Van Berkom
2009-11-24 18:52:25 UTC
Permalink
- You can introduce stock icons using the GtkIconFactory object
available with GtkBuilder
- The GnomeDateEdit missing displayable value reflects a missing
translatable string in Glade's backend
(seems the GTK+ backend handles some gnome types possibly, for
some minor conversions at load time)
- People generally use GtkTreeView for what they used to use GtkCList for

- As far as "getting your Glade file to work", As I said, I removed
the <requires> line as I saw it was only
needed for the icon definitions and Glade
did not crash - for your app to look normal; the "orientation"
property of every GtkOrientable widget
must be set properly, google might find you a script for this as
its a common problem, or, you might
write one and tell google about it, or somebody might just fix the
bug in GTK+.




On Tue, Nov 24, 2009 at 4:34 PM, Saku Masukita
Post by Saku Masukita
On Tue, Nov 24, 2009 at 4:39 PM, Tristan Van Berkom
Post by Tristan Van Berkom
Yes, generally that just means replacing calls to glade_xml_new()
with gtk_builder_add_from_file(), and then glade_xml_get_widget()
with gtk_builder_get_object() (i.e. the api is very small).
The bulk of your work to use GtkBuilder would be to get rid
of the gnome widgets essentially, which is something you
would want to do anyway for new code.
Post by Saku Masukita
Obviously something needs to be done for me to be able to open the
file with glade-3, but I am not sure exactly what. Any ideas?
The warnings are normal (as we actually need people to contribute
artwork for those missing icons), the segfault I cant tell by looking into
your file, but I was able to do something with it.
After looking at the segfault (which I didnt reproduce because I didnt
build the gnome catalog here...) I found that you do not use any gnome
widgets (good first of all for you), only gnome stock icons.
So, after removing the <requires/> line from your Glade file I loaded
up with no segfault, but horizontally.
Yes, I was in fact aware of the fact that I had not used any gnome-specific
code. So I cannot really explain to myself why the glade 2 GUI builder had
placed the <requires lib="gnome"/> XML element in the XML file but I
guess glade 2 is history now so it's probably not worth fixing such bug.
Actually the reason might seem to be the fact that I have used some
gnome icons in the glade 2 XML file despite not using any actual widgets.
Here are the gnome icons from the glade 2 XML file which I seem to have
gnome-stock-text-numbered-list
gnome-stock-multiple-file
gnome-stock-mail-new
gnome-stock-about
gnome-stock-book-blue
gnome-stock-book-yellow
gnome-stock-book-red
gnome-stock-book-green
So, I'm not sure what the corresponding icons would be in
the most recent Gtk icons if any at all. But I guess this is
what I need to fix. Otherwise can I not just simply copy
these gnome icons to my source code tree and somehow
import them into glade-3 from there?
Otherwise what should I do? Should I just delete these lines
to get it to work? Because right now despite deleting the
<requires lib="gnome"/> tag I still get the segmentation
fault.
Plus I just don't understand what these complaints about
GnomeDateEdit which I don't see used within the glade 2
file are. And the names of the icons from the warnings do
not appear inside the glade 2 file either. I am confused.
I guess 4034 is just an error code (apart from the segfault).
-------------------------------------------------------------------------------------------------
GladeUI-Message: No displayable values for property GtkScaleButton::size
GladeUI-Message: No displayable values for property GtkImage::icon-size
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-sizegroup' was
found for object class 'GtkSizeGroup'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-accelgroup'
was found for object class 'GtkAccelGroup'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-adjustment'
was found for object class 'GtkAdjustment'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-uimanager' was
found for object class 'GtkUIManager'.
(glade-3:4034): GladeUI-WARNING **: No icon named
'widget-gtk-treemodelfilter' was found for object class
'GtkTreeModelFilter'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-treemodelsort'
was found for object class 'GtkTreeModelSort'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-treeselection'
was found for object class 'GtkTreeSelection'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-statusicon'
was found for object class 'GtkStatusIcon'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-textbuffer'
was found for object class 'GtkTextBuffer'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-texttag' was
found for object class 'GtkTextTag'.
GladeUI-Message: No displayable values for property GtkTextTag::direction
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-texttagtable'
was found for object class 'GtkTextTagTable'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-filefilter'
was found for object class 'GtkFileFilter'.
GladeUI-Message: 1 missing displayable value for
GnomeDateEdit::dateedit-flags
GladeUI-Message: No displayable values for property
GnomeIconList::selection-mode
Segmentation fault
-------------------------------------------------------------------------------------------------
Post by Tristan Van Berkom
To fix the horizontalness, I'm not sure if someone attached a script
to the bug that does that (since your file is considerably large and
a PITA to fix by hand), fixing it by hand means fixing the orientation
property of each vbox/vpaned etc in the project.
Yeah, maybe a script is needed, but since I don't really understand what
the replacements should be I am also not sure about how to write such
script.
Post by Tristan Van Berkom
I got a bunch of errors from CList, seems support for CList somehow
got broken in Glade, however your file still seems to load and save ok,
Im not sure whats going on with your CList children (ofcourse you will
have to drop deprecated GtkCList anyway to move on to GtkBuilder).
So what do I use in place of GtkCList or CList?
Post by Tristan Van Berkom
In terms of litterature I think there is not much, its better for you to
stick with some tutorials, reference manuals, the source and irc I
would think.
Thank, I will have a look at these as well, but what other modifications
did you make to the glade file to get it to work?
Thanks,
Saku Masukita
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Tristan Van Berkom
2009-11-24 18:57:53 UTC
Permalink
On Tue, Nov 24, 2009 at 4:52 PM, Tristan Van Berkom
 - You can introduce stock icons using the GtkIconFactory object
available with GtkBuilder
 - The GnomeDateEdit missing displayable value reflects a missing
translatable string in Glade's backend
   (seems the GTK+ backend handles some gnome types possibly, for
some minor conversions at load time)
 - People generally use GtkTreeView for what they used to use GtkCList for
 - As far as "getting your Glade file to work", As I said, I removed
the <requires> line as I saw it was only
needed for the icon definitions and Glade
   did not crash - for your app to look normal; the "orientation"
property of every GtkOrientable widget
   must be set properly, google might find you a script for this as
its a common problem, or, you might
   write one and tell google about it, or somebody might just fix the
bug in GTK+.
Oops hit send prematurely but the letter was done, essentially considering
the shear size of your UI, converting it to use GtkBuilder will not be such
an easy task - you will at least have to understand GtkTreeView for instance...

Anyway good luck with your project,

-Tristan
On Tue, Nov 24, 2009 at 4:34 PM, Saku Masukita
Post by Saku Masukita
On Tue, Nov 24, 2009 at 4:39 PM, Tristan Van Berkom
Post by Tristan Van Berkom
Yes, generally that just means replacing calls to glade_xml_new()
with gtk_builder_add_from_file(), and then glade_xml_get_widget()
with gtk_builder_get_object() (i.e. the api is very small).
The bulk of your work to use GtkBuilder would be to get rid
of the gnome widgets essentially, which is something you
would want to do anyway for new code.
Post by Saku Masukita
Obviously something needs to be done for me to be able to open the
file with glade-3, but I am not sure exactly what. Any ideas?
The warnings are normal (as we actually need people to contribute
artwork for those missing icons), the segfault I cant tell by looking into
your file, but I was able to do something with it.
After looking at the segfault (which I didnt reproduce because I didnt
build the gnome catalog here...) I found that you do not use any gnome
widgets (good first of all for you), only gnome stock icons.
So, after removing the <requires/> line from your Glade file I loaded
up with no segfault, but horizontally.
Yes, I was in fact aware of the fact that I had not used any gnome-specific
code. So I cannot really explain to myself why the glade 2 GUI builder had
placed the <requires lib="gnome"/> XML element in the XML file but I
guess glade 2 is history now so it's probably not worth fixing such bug.
Actually the reason might seem to be the fact that I have used some
gnome icons in the glade 2 XML file despite not using any actual widgets.
Here are the gnome icons from the glade 2 XML file which I seem to have
gnome-stock-text-numbered-list
gnome-stock-multiple-file
gnome-stock-mail-new
gnome-stock-about
gnome-stock-book-blue
gnome-stock-book-yellow
gnome-stock-book-red
gnome-stock-book-green
So, I'm not sure what the corresponding icons would be in
the most recent Gtk icons if any at all. But I guess this is
what I need to fix. Otherwise can I not just simply copy
these gnome icons to my source code tree and somehow
import them into glade-3 from there?
Otherwise what should I do? Should I just delete these lines
to get it to work? Because right now despite deleting the
<requires lib="gnome"/> tag I still get the segmentation
fault.
Plus I just don't understand what these complaints about
GnomeDateEdit which I don't see used within the glade 2
file are. And the names of the icons from the warnings do
not appear inside the glade 2 file either. I am confused.
I guess 4034 is just an error code (apart from the segfault).
-------------------------------------------------------------------------------------------------
GladeUI-Message: No displayable values for property GtkScaleButton::size
GladeUI-Message: No displayable values for property GtkImage::icon-size
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-sizegroup' was
found for object class 'GtkSizeGroup'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-accelgroup'
was found for object class 'GtkAccelGroup'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-adjustment'
was found for object class 'GtkAdjustment'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-uimanager' was
found for object class 'GtkUIManager'.
(glade-3:4034): GladeUI-WARNING **: No icon named
'widget-gtk-treemodelfilter' was found for object class
'GtkTreeModelFilter'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-treemodelsort'
was found for object class 'GtkTreeModelSort'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-treeselection'
was found for object class 'GtkTreeSelection'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-statusicon'
was found for object class 'GtkStatusIcon'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-textbuffer'
was found for object class 'GtkTextBuffer'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-texttag' was
found for object class 'GtkTextTag'.
GladeUI-Message: No displayable values for property GtkTextTag::direction
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-texttagtable'
was found for object class 'GtkTextTagTable'.
(glade-3:4034): GladeUI-WARNING **: No icon named 'widget-gtk-filefilter'
was found for object class 'GtkFileFilter'.
GladeUI-Message: 1 missing displayable value for
GnomeDateEdit::dateedit-flags
GladeUI-Message: No displayable values for property
GnomeIconList::selection-mode
Segmentation fault
-------------------------------------------------------------------------------------------------
Post by Tristan Van Berkom
To fix the horizontalness, I'm not sure if someone attached a script
to the bug that does that (since your file is considerably large and
a PITA to fix by hand), fixing it by hand means fixing the orientation
property of each vbox/vpaned etc in the project.
Yeah, maybe a script is needed, but since I don't really understand what
the replacements should be I am also not sure about how to write such
script.
Post by Tristan Van Berkom
I got a bunch of errors from CList, seems support for CList somehow
got broken in Glade, however your file still seems to load and save ok,
Im not sure whats going on with your CList children (ofcourse you will
have to drop deprecated GtkCList anyway to move on to GtkBuilder).
So what do I use in place of GtkCList or CList?
Post by Tristan Van Berkom
In terms of litterature I think there is not much, its better for you to
stick with some tutorials, reference manuals, the source and irc I
would think.
Thank, I will have a look at these as well, but what other modifications
did you make to the glade file to get it to work?
Thanks,
Saku Masukita
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel
Saku Masukita
2009-12-04 17:00:00 UTC
Permalink
On Wed, Nov 25, 2009 at 7:01 PM, Tristan Van Berkom <
On Wed, Nov 25, 2009 at 4:31 PM, Saku Masukita
Dont care about that warning, its a missing translation and has nothing
to do with loading your project.
Thank you Tristan,

What version of Glade do you have ? try the latest tarball
from ftp.gnome.org (3.6.7).
In fact I have upgraded to the latest version of Ubuntu (9.10) and
glade (alias glade-3) comes installed (there is no glade-2) but after
commenting out the aforementioned line I can load everything now
but still have that horizontal/vertical problem you mentioned.

Does it crash before or after firing a bunch of runtime warnings about
GtkCList ?
No it does not crash now that I have the latest version.
I just get several warnings.
Post by Tristan Van Berkom
needed for the icon definitions and Glade
did not crash - for your app to look normal;
I see several GtkImage instances in the glade file. Are these the
icon definitions you are referring to?
I know, Glade 2 does not output that property, cause its new, its new and
introduced broken.
Too bad that such property was introduced broken.
Do you foresee that in future versions such conversion
problem would be fixed?

Thank you very much for your help,

Regards,

John Goche
Tristan Van Berkom
2009-12-04 18:28:33 UTC
Permalink
On Fri, Dec 4, 2009 at 3:00 PM, Saku Masukita
Post by Saku Masukita
On Wed, Nov 25, 2009 at 7:01 PM, Tristan Van Berkom
On Wed, Nov 25, 2009 at 4:31 PM, Saku Masukita
Dont care about that warning, its a missing translation and has nothing
to do with loading your project.
Thank you Tristan,
What version of Glade do you have ? try the latest tarball
from ftp.gnome.org (3.6.7).
In fact I have upgraded to the latest version of Ubuntu (9.10) and
glade (alias glade-3) comes installed (there is no glade-2) but after
commenting out the aforementioned line I can load everything now
but still have that horizontal/vertical problem you mentioned.
Does it crash before or after firing a bunch of runtime warnings about
GtkCList ?
No it does not crash now that I have the latest version.
I just get several warnings.
Post by Tristan Van Berkom
needed for the icon definitions and Glade
   did not crash - for your app to look normal;
I see several GtkImage instances in the glade file. Are these the
icon definitions you are referring to?
I know, Glade 2 does not output that property, cause its new, its new and
introduced broken.
Too bad that such property was introduced broken.
Do you foresee that in future versions such conversion
problem would be fixed?
The easiest fix would be in GTK+, to fix it from a conversion
could be possible from Glade, i.e. we could make the rude assumption
that any libglade file is broken and "fix" it on the way into GtkBuilder;
that would not solve the problem of any GtkBuilder files that were
created before the GTK+ version introducing GtkOrientable (which is
the other half of the problem at hand).

I cant speak for when that bug will be fixed in GTK+, I did not submit
a patch myself, although such a patch would be arguably easy to write.

Cheers,
-Tristan
_______________________________________________
Glade-devel maillist - Glade-***@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel

Loading...