Monday, May 6, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1817  / 2 Years ago, thu, october 20, 2022, 12:10:16

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?


More From » application-development

 Answers
3

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.


[#31861] Saturday, October 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
;