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



Sounds good.  While you're at it, did you notice that just changing
the format doesn't set the flag that the file has changed?  The name
is not prepended with an asterisk and you can quit without a "save
before closing" prompt, IIRC.

On Tue, May 5, 2009 at 10:07 AM, Tristan Van Berkom
<tristan.van.berkom at gmail.com> wrote:
On Tue, May 5, 2009 at 9:53 AM, Gerald Britton <gerald.britton at gmail.com> wrote:
Thanks Tristan. ?What you say makes sense. ?I was expecting too much.
I guess I could work around it by making my new project the same
format then changing it just before saving it, right?

Lol, you did not expect too much, I came up shorthanded ;-)

but yeah I will make that use-case impossible and show
a dialog explaining why... what you should do is first convert
the project, then copy in objects from the converted project
(or just work with the converted project as is).

Cheers,
? ? ? ?-Tristan


On Tue, May 5, 2009 at 9: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





--
Gerald Britton





-- 
Gerald Britton




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