GNOME Bugzilla – Bug 567809
Can't rename a pasted widget to its original name
Last modified: 2009-03-16 19:36:59 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:
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...
Fixed in 3.6 release