[Glade-users] Reading old glade files returns "Couldnt determine project format"



Hello Tristan.

Thank you for the reply. I really appreciate it.

As much as possible, I don't want to migrate the files to the new version
because this is a very big system and I
only need to update a few glade files. Would you know if there is still a
Glade1 software available around?
I've tried searching but wasn't able to find anything. Google returns
Glade2 or Glade3 results.

Thank you.

On Mon, Mar 11, 2013 at 6:22 PM, Tristan Van Berkom <tristanvb at openismus.com
wrote:

On Mon, 2013-03-11 at 17:01 +0800, jason yap wrote:
Hello.


I am new to glade and I have been experiencing this problem since last
week.


This is not libglade format, this is the original Glade (1) format and
is very very outdated.

You might try this old conversion script from libglade first:

    https://git.gnome.org/browse/libglade/tree/libglade-convert.in

And then try opening the results with Glade 3.8...

And in Glade 3.8, you'd open the project properties to set
the project format to GtkBuilder and "Save As..." another new
file.

If the project is relatively small, you might want to just re-create
the interface with modern Glade... otherwise, your migration path
is basically what I outlined above (whatever happens, stay away from
the 'gtkbuilder-convert' script, which will create interfaces loadable
by GtkBuilder by not understandable by Glade).

Cheers,
     -Tristan


I have a legacy code (coded around 2001) and I cant seem to open it in
the glade-gtk2 nor in glade.
It is returning "Couldnt determine project format, skipping
<filename>"


Im running in Ubuntu Precise 12.04 LTS (64bit)
The libraries that are installed:
glade                 3.12.1-0ubuntu1
glade-gtk2          3.8.0-0ubuntu4
libglade2-0         1:2.6.4-1ubuntu1.1
libglade2-dev      1:2.6.4-1ubuntu1.1
libgladeui-1-11    3.8.0-0ubuntu4
libgladeui-2-0      3.12.1-0ubuntu1
libgladeui-common  3.12.1-0ubuntu1


Here is a snippet for an actual GladeXML file from the legacy system
<?xml version="1.0" encoding="UTF-8"?>
<GTK-Interface>
<project>
  <name>ZID3</name>
  <program_name>ZID3</program_name>
  <directory></directory>
  <pixmaps_directory>pixmaps</pixmaps_directory>
  <gnome_support>True</gnome_support>
</project>


<widget>
  <class>GtkWindow</class>
  <name>ZID3</name>
  <width>523</width>
  <height>120</height>
  <signal>
    <name>map_event</name>
    <handler>map_event</handler>
    <last_modification_time>Fri, 26 Jan 2001 04:22:31
GMT</last_modification_time>
  </signal>
  <signal>
    <name>set_focus</name>
    <handler>set_focus</handler>
    <last_modification_time>Fri, 26 Jan 2001 04:22:42
GMT</last_modification_time>
  </signal>
  <signal>
    <name>delete_event</name>
    <handler>gtk_true</handler>
    <last_modification_time>Mon, 25 Nov 2002 06:01:39
GMT</last_modification_time>
  </signal>
  <title>(ZID3)????</title>
  <type>GTK_WINDOW_DIALOG</type>
  <position>GTK_WIN_POS_CENTER</position>
</widget>
</GTK-Interface>


If you need other info, please let me know.


Would really appreciate it if someone can help me with my problem.


Thank you.






_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users





-- 
RAYMOND JASON YAP
Research and Development Engineer
Advanced World Systems, Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/glade-users/attachments/20130315/a904dbc3/attachment.html>




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