[Glade-users] Apparent bug in glade-3 with copy and paste

Scott Flynn scott at starlon.net
Tue May 5 23:50:55 EDT 2009


Oh to clarify my experiments, I went further than I did before the email and
actually tried loading the GtkBuilder file generated. There were many
complaints. :) Certainly nothing I wanted to work out by hand. Someone said
something about converting the project. I didn't see a way to do that in
Glade3. Is there some script people are using?

On Tue, May 5, 2009 at 8:17 AM, Tristan Van Berkom <
tristan.van.berkom at gmail.com> wrote:

> Guys !
>
>   Eeek you got me ! well, I can frankly say up to this moment
> that I did not anticipate this use case.
>
> Im going to call it a bug and the fix at least for now will
> be to disallow such copy/pastes across projects with different
> formats.
>
> To shed some light: there are 2 aspects which make the format
> differ, some (most) objects are only loaded/saved differently
> (which is why this might work for Scott), in many corner cases
> though, the actual data representing the UI differs (take
> for example, the internal image of an imagemenuitem vs
> the builder format's "image" property).
>
> For object conversion at copy/paste level we would need
> to introduce a per-class backend function to handle conversions
> at the object level, Glade currently only has a conversion
> routine for each widget catalog and only converts when the
> whole project is converted.
>
> It would be nice having it work the right way, although I
> dont have the time for that now...
>
> Cheers,
>        -Tristan
>
> On Mon, May 4, 2009 at 11:49 AM, Gerald Britton
> <gerald.britton at gmail.com> wrote:
> > Hi -- as part of a project to migrate from libglade to GtkBuilder, I
> > am using glade-3 (Glade 3.6.3) as a tool.  I'm trying to do the
> > following:
> >
> > 1, startup glade-3 and open the current libglade-format file
> > 2. select a widget and copy (or cut)
> > 3. create a new glade file (Ctrl-N) and set it to GtkBuilder 2.12
> > 4. Paste the widget I copied from the old file
> >
> >
> > WHen I do this,  a widget gets pasted alright, just not the one I
> > copied!  Is this expected behaviour or a side effect of copying from
> > libglade format and pasting into GtkBuilder format?
> >
> > --
> > Gerald Britton
> > _______________________________________________
> > Glade-users maillist  -  Glade-users at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/glade-users
> >
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20090505/4b0dd0fc/attachment.html 


More information about the Glade-users mailing list