[Glade-devel] opening glade2 file on ubuntu 11.10
Tristan Van Berkom
tristan.van.berkom at gmail.com
Mon Nov 7 19:27:41 EST 2011
Hello,
You do not need a conversion tool to load a file created with Glade 2.
While Glade 3 is a completely new code base, it is built upon the same
xml format as Glade 2 was generating.
What you should have, is the latest version of Glade 3.8 stable, Glade 3.10
forward will no longer recognize the old libglade format.
With Glade 3.8 you should be able to load your old Glade file created with
Glade 2 and then use the menubar: "Project->Properties" to get the project
dialog and change the target format to be GtkBuilder instead of libglade.
This action will do the conversion, after which you might get some warnings
about usage of widgets that are deprecated or unsupported by GtkBuilder.
Ideally, Glade 3.8 is intended to eventually cover the full GtkBuilder feature
set offered by GTK+ 2.24 (there may remain a couple unsupported widgets
but I think it's mostly covered)... if you can load your project in the latest
Glade and there is no usage of deprecated widgets, then you should be
able to load that file in Glade 3.10 (if you wish to make the switch to GTK+-3).
That was a lot of information, the key point though is you should be able
to load your older file created with Glade 2 using Glade 3.8.x without any
problems (if you hit a snag though, please let us know).
Cheers,
-Tristan
On Mon, Nov 7, 2011 at 6:02 PM, Saku Masukita
<sakumasukita at googlemail.com> wrote:
>
> Hi all,
>
> To add to my email, how do I install glade 2 on Ubuntu 11.10?
> I tried downloading the glade-2.12.2.tar.gz and got the following
> output when I run configure:
>
> ----------------------------------------------------------------------------------------------------------
>
> ...
>
> checking for IceConnectionNumber in -lICE... yes
> checking for pkg-config... /usr/bin/pkg-config
> checking pkg-config is at least version 0.9.0... yes
> checking for GLADE_GTK... configure: error: Package requirements (libxml-2.0
>>= 2.4.1 gtk+-2.0 >= 2.8.0) were not met:
>
> No package 'libxml-2.0' found
> No package 'gtk+-2.0' found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables GLADE_GTK_CFLAGS
> and GLADE_GTK_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
>
> --------------------------------------------------------------------------------------------------------------
>
> Also, I'm not sure what the complaints are about, when I inspect my /usr/lib
> directory I get:
>
> $ ls /usr/lib/{*xml*,*gtk*}
> /usr/lib/libcanberra-gtk3.so.0 /usr/lib/libgtk-3.so.0.200.0
> /usr/lib/libgwibber-gtk.so.2.0.0
> /usr/lib/libcanberra-gtk3.so.0.1.8 /usr/lib/libgtkmm-2.4.so.1
> /usr/lib/libindicate-gtk.so.3
> /usr/lib/libcanberra-gtk.so.0 /usr/lib/libgtkmm-2.4.so.1.1.0
> /usr/lib/libindicate-gtk.so.3.0.2
> /usr/lib/libcanberra-gtk.so.0.1.8 /usr/lib/libgtkmm-3.0.so.1
> /usr/lib/libnm-gtk.so.0
> /usr/lib/libdbusmenu-gtk3.so.4 /usr/lib/libgtkmm-3.0.so.1.1.0
> /usr/lib/libnm-gtk.so.0.0.0
> /usr/lib/libdbusmenu-gtk3.so.4.0.5 /usr/lib/libgtksourceview-3.0.so.0
> /usr/lib/libpeas-gtk-1.0.so.0
> /usr/lib/libdbusmenu-gtk.so.4 /usr/lib/libgtksourceview-3.0.so.0.0.0
> /usr/lib/libpeas-gtk-1.0.so.0.200.0
> /usr/lib/libdbusmenu-gtk.so.4.0.5 /usr/lib/libgtkspell3.so.0
> /usr/lib/libwebkitgtk-1.0.so.0
> /usr/lib/libgdu-gtk.so.0 /usr/lib/libgtkspell3.so.0.0.0
> /usr/lib/libwebkitgtk-1.0.so.0.7.3
> /usr/lib/libgdu-gtk.so.0.0.0 /usr/lib/libgtkspell.so.0
> /usr/lib/libwebkitgtk-3.0.so.0
> /usr/lib/libgtk-3.a /usr/lib/libgtkspell.so.0.0.0
> /usr/lib/libwebkitgtk-3.0.so.0.7.3
> /usr/lib/libgtk-3.la /usr/lib/libgtk-vnc-2.0.so.0
> /usr/lib/libxml2.so.2
> /usr/lib/libgtk-3.so /usr/lib/libgtk-vnc-2.0.so.0.0.2
> /usr/lib/libxml2.so.2.7.8
> /usr/lib/libgtk-3.so.0 /usr/lib/libgwibber-gtk.so.2
>
> /usr/lib/gtk-2.0:
> 2.10.0 modules
>
> /usr/lib/gtk-3.0:
> 3.0.0 modules
>
> /usr/lib/gtk-sharp-beans:
> gio-sharp.dll gio-sharp.dll.config gtk-sharp-beans.dll
> gtk-sharp-beans.dll.config
>
> /usr/lib/libgtk-3-0:
> gtk-query-immodules-3.0 gtk-update-icon-cache-3.0
>
> /usr/lib/webkitgtk-1.0-0:
> libexec
>
> /usr/lib/webkitgtk-3.0-0:
> libexec
>
> ------------------------------------------------------------------------------------------------------------------------
>
> Even if I need to convert the glade2 file to glade3 by hand I'm going to
> have to have glade2
> installed on the system in order to see what conversions I need to do.
>
> Thanks,
>
> Saku
>
> On Mon, Nov 7, 2011 at 11:52 PM, Saku Masukita <sakumasukita at googlemail.com>
> wrote:
>>
>> Hello,
>>
>> A couple of years ago I was asking whether there would be
>> some tool to convert glade2 files to glade3 files but the answer
>> was negative (and that if anything such conversion must be part
>> of GTK+ and not glade). To date I still don't think such a tool exists.
>>
>> Is there a script or an easy way out to carry out the conversion?
>>
>> Thanks,
>>
>> Saku
>
>
> _______________________________________________
> Glade-devel maillist - Glade-devel at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-devel
>
>
More information about the Glade-devel
mailing list