[Glade-devel] please help: bug: glade2 file conversion to glade3 failed
- From: sakumasukita at googlemail.com (Saku Masukita)
- Subject: [Glade-devel] please help: bug: glade2 file conversion to glade3 failed
- Date: Tue, 24 Nov 2009 16:06:37 +0000
On Mon, Nov 23, 2009 at 4:41 PM, Tristan Van Berkom <
tristan.van.berkom at gmail.com> wrote:
On Mon, Nov 23, 2009 at 2:29 PM, Saku Masukita
<sakumasukita at googlemail.com> wrote:
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
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.
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?
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-devel/attachments/20091124/e77cb010/attachment-0001.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]