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



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





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