Skip to content

Commit 0401b23

Browse files
committed
Gladevcp: tooledit_widget, auto scroll to the end of the list when adding tool
1 parent 726bd91 commit 0401b23

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/python/gladevcp/tooledit_widget.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ def match_tool(model, path, iter, pathlist):
231231
def add(self,widget,data=[1,0,0,'0','0','0','0','0','0','0','0','0','0','0','0',0,"comment"]):
232232
self.model.append(data)
233233
self.num_of_col +=1
234+
liststore = self.model
235+
self.wTree.get_object("treeview1").scroll_to_cell(len(liststore)-1)
234236

235237
# this is for adding a filename path after the tooleditor is already loaded.
236238
def set_filename(self,filename):

0 commit comments

Comments
 (0)