[Glade-users] Reading old glade files returns "Couldnt determine project format"
Tristan Van Berkom
tristanvb at openismus.com
Mon Mar 11 10:22:53 UTC 2013
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
More information about the Glade-users
mailing list