After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 567809 - Can't rename a pasted widget to its original name
Can't rename a pasted widget to its original name
Status: RESOLVED FIXED
Product: glade
Classification: Applications
Component: general
3.5.x
Other All
: Normal major
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-14 23:58 UTC by Joakim Lundborg
Modified: 2009-03-16 19:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix widget names (1.25 KB, patch)
2009-03-15 23:43 UTC, Tristan Van Berkom
none Details | Review

Description Joakim Lundborg 2009-01-14 23:58:08 UTC
Please describe the problem:
When a widget "my_widget" is cut and pasted, for example when moving stuff around in the UI, the name gets changed to something like "my_widget1". This is a bit inconvenient if you wanted to move it. But the big problem is that I can't change the name back to its original name. It is like it is still in the list of "taken names". T

his makes the cut and paste useless for moving stuff around, since they need to have the same name for the program loading them to work correctly. This also applies to signal names etc.

Saving and reloading the file allows you to change the name again.

Steps to reproduce:
1. Cut a widget
2. Paste it
3. Try to rename it to the original name


Actual results:
The widget loses its original name, and I can't rename it to the original name,

Expected results:
I expect it to only change the name when it needs to, i.e. when copying. I also expect to be able to rename to a free name, even though something previously had this name.

Does this happen every time?
Yes

Other information:
Comment 1 Tristan Van Berkom 2009-03-15 23:43:27 UTC
Created attachment 130718 [details] [review]
Fix widget names

This patch changes the order in which GladeCommand removes objects
from a project when cutting or deleting a widget (which is needed
for widget names to be bookkept in the correct context).

Holding patch back until I have permission to commit... or code freeze finishes...
Comment 2 Tristan Van Berkom 2009-03-16 19:36:59 UTC
Fixed in 3.6 release