Re: Glade / Gtk+ version mismatch and fatal errors

Daniel Kasak <[email protected]> Fri, 2 Oct 2015 15:11:08 +1000
Newsgroups gmane.comp.gnome.glade.user
Message-ID <CAF73Y=Se4wQ8yr+=pAjQmkYriy52X3fAhhrxsTfa03ptM1BfJg@mail.gmail.com>
--===============1578521420==
Content-Type: multipart/alternative; boundary=001a114820c400cf72052118317a

--001a114820c400cf72052118317a
Content-Type: text/plain; charset=UTF-8

Hi Tristan. Thanks for the reply.

I'm deploying stuff on Windows ( and I'm struggling to build Gtk+ on
Windows - I managed it at one point, but I had to pull in patches from all
over the place, and they no longer apply cleanly ). After more testing, I'm
seeing this kind of issue all over the place now :( I guess the only
solution is to roll back to an earlier version of Glade that matches the
target Gtk+ version I'm deploying to.

Dan

On Fri, Oct 2, 2015 at 1:57 PM, Tristan Van Berkom <
[email protected]> wrote:

> Hi Daniel,
>
> Glade 3.18 has been a bit stale for quite some time, I recommend that,
> if it's possible for you, to build a Glade 3.19 dev snapshot for work
> purposes, it has a lot more integration of newer widgets.
>
> Regarding your deployment issue, when in doubt, refer to the GTK+
> documentation[0], note that the wide-handle property was introduced in
> GTK+ 3.16.
>
> Unfortunately what's happened here is that Glade has introspected the
> wide-handle property at runtime, but since Glade's catalog has not
> seen any update for a while in Glade 3.18... it does not know what
> version wide-handle was introduced in... we admittedly need better
> integration with system GIR files (which I think by now should be
> providing the 'Since' information) for this to be better automated.
>
> Best,
>     -Tristan
>
> [0]:
> https://developer.gnome.org/gtk3/stable/GtkPaned.html#GtkPaned--wide-handle
>
>
> On Fri, Oct 2, 2015 at 8:20 AM, Daniel Kasak <[email protected]>
> wrote:
> > Hi all.
> >
> > I just created a builder file with Glade-3.18.3. I left the target
> version
> > as the default ( 3.18 ) and deployed to a system with gtk-3.14.3. I got
> an
> > error ( which prevented the window from opening at all ):
> >
> > *** unhandled exception in callback:
> > ***   Invalid property: GtkPaned.wide_handle on line 24 at
> > c:/strawberry/perl/site/lib/Gtk3.pm line 544.
> > ***   ignoring at c:/starberry/perl/site/lib/Gtk3.pm line 318.
> >
> > So I went back into glade, loaded this builder file, went to File ==>
> > Properties and looked at the 'Toolkit version required' area.
> >
> > The *latest* was 3.12 - which is *earlier* than my gtk version on the
> system
> > I'm deploying to. Anyway I set it back to 3.8, clicked the 'verify'
> button (
> > there were no version mismatches ), saved, deployed, and tried again.
> > Unfortunately, I get the same error.
> >
> > I worked around the issue by unsetting the 'wide handle' toggle on the
> paned
> > widget.
> >
> > It might be better for whatever's throwing this error to make it
> > *non*-fatal.
> >
> > Dan
> >
> > _______________________________________________
> > Glade-users maillist  -  [email protected]
> > http://lists.ximian.com/mailman/listinfo/glade-users
> >
>

--001a114820c400cf72052118317a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><div>Hi Tristan. Thanks for the reply.<br><br></div>I=
&#39;m deploying stuff on Windows ( and I&#39;m struggling to build Gtk+ on=
 Windows - I managed it at one point, but I had to pull in patches from all=
 over the place, and they no longer apply cleanly ). After more testing, I&=
#39;m seeing this kind of issue all over the place now :( I guess the only =
solution is to roll back to an earlier version of Glade that matches the ta=
rget Gtk+ version I&#39;m deploying to.<br><br></div>Dan<br></div><div clas=
s=3D"gmail_extra"><br><div class=3D"gmail_quote">On Fri, Oct 2, 2015 at 1:5=
7 PM, Tristan Van Berkom <span dir=3D"ltr">&lt;<a href=3D"mailto:tristan.va=
[email protected]" target=3D"_blank">[email protected]</a>&gt;<=
/span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex">Hi Daniel,<br>
<br>
Glade 3.18 has been a bit stale for quite some time, I recommend that,<br>
if it&#39;s possible for you, to build a Glade 3.19 dev snapshot for work<b=
r>
purposes, it has a lot more integration of newer widgets.<br>
<br>
Regarding your deployment issue, when in doubt, refer to the GTK+<br>
documentation[0], note that the wide-handle property was introduced in<br>
GTK+ 3.16.<br>
<br>
Unfortunately what&#39;s happened here is that Glade has introspected the<b=
r>
wide-handle property at runtime, but since Glade&#39;s catalog has not<br>
seen any update for a while in Glade 3.18... it does not know what<br>
version wide-handle was introduced in... we admittedly need better<br>
integration with system GIR files (which I think by now should be<br>
providing the &#39;Since&#39; information) for this to be better automated.=
<br>
<br>
Best,<br>
=C2=A0 =C2=A0 -Tristan<br>
<br>
[0]:<a href=3D"https://developer.gnome.org/gtk3/stable/GtkPaned.html#GtkPan=
ed--wide-handle" rel=3D"noreferrer" target=3D"_blank">https://developer.gno=
me.org/gtk3/stable/GtkPaned.html#GtkPaned--wide-handle</a><br>
<div><div class=3D"h5"><br>
<br>
On Fri, Oct 2, 2015 at 8:20 AM, Daniel Kasak &lt;<a href=3D"mailto:d.j.kasa=
[email protected]">[email protected]</a>&gt; wrote:<br>
&gt; Hi all.<br>
&gt;<br>
&gt; I just created a builder file with Glade-3.18.3. I left the target ver=
sion<br>
&gt; as the default ( 3.18 ) and deployed to a system with gtk-3.14.3. I go=
t an<br>
&gt; error ( which prevented the window from opening at all ):<br>
&gt;<br>
&gt; *** unhandled exception in callback:<br>
&gt; ***=C2=A0 =C2=A0Invalid property: GtkPaned.wide_handle on line 24 at<b=
r>
&gt; c:/strawberry/perl/site/lib/Gtk3.pm line 544.<br>
&gt; ***=C2=A0 =C2=A0ignoring at c:/starberry/perl/site/lib/Gtk3.pm line 31=
8.<br>
&gt;<br>
&gt; So I went back into glade, loaded this builder file, went to File =3D=
=3D&gt;<br>
&gt; Properties and looked at the &#39;Toolkit version required&#39; area.<=
br>
&gt;<br>
&gt; The *latest* was 3.12 - which is *earlier* than my gtk version on the =
system<br>
&gt; I&#39;m deploying to. Anyway I set it back to 3.8, clicked the &#39;ve=
rify&#39; button (<br>
&gt; there were no version mismatches ), saved, deployed, and tried again.<=
br>
&gt; Unfortunately, I get the same error.<br>
&gt;<br>
&gt; I worked around the issue by unsetting the &#39;wide handle&#39; toggl=
e on the paned<br>
&gt; widget.<br>
&gt;<br>
&gt; It might be better for whatever&#39;s throwing this error to make it<b=
r>
&gt; *non*-fatal.<br>
&gt;<br>
&gt; Dan<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Glade-users maillist=C2=A0 -=C2=A0 <a href=3D"mailto:Glade-users@lists=
.ximian.com">[email protected]</a><br>
&gt; <a href=3D"http://lists.ximian.com/mailman/listinfo/glade-users" rel=
=3D"noreferrer" target=3D"_blank">http://lists.ximian.com/mailman/listinfo/=
glade-users</a><br>
&gt;<br>
</blockquote></div><br></div>

--001a114820c400cf72052118317a--

--===============1578521420==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users

--===============1578521420==--