Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I reorder widgets in the Glade widget tree?

For example, assume I have a Glade application that contains this partial tree:

box1 (GtkBox)
|--button1 (GtkButton)
|--button2 (GtkButton)
|--button3 (GtkButton)

How can I swap the position of e.g. button1 with e.g. button2, so that button2 will be above button1 in the UI?

share|improve this question
    
You're looking for re-parenting. Post a more complete code sample and glade file for an answer instead of a comment. An example answer that provides the context the question should have: askubuntu.com/questions/155298/… –  hbdgaf Apr 7 '13 at 13:35
    
gist.github.com/strugee/5330567. i don't have any logic hooked up yet for buttons and stuff. –  strugee Apr 7 '13 at 13:50
    
it has one additional .py file that shouldn't be getting imported from anything. other than that it's a generic quickly application. –  strugee Apr 7 '13 at 13:51
add comment

1 Answer 1

up vote 1 down vote accepted

Upon further investigation, it appears that you cannot modify the order from the widget tree panel. However, you can still modify order in the visual editor.

In the toolbar, there are a couple of buttons for selecting cursor modes. Click the button right after the cursor. It should have four arrows. Then click on the widget that you want to move, and drag it where you want to move it to.

share|improve this answer
2  
Or you can change the position property in the packing tab of the buttons. –  Timo Apr 7 '13 at 19:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.