* src/SourceView.py: connect SourceView.merge into the multiple
selection mechanism svn: r4245
This commit is contained in:
@ -203,13 +203,14 @@ class SourceView:
|
|||||||
def update_display(self,source):
|
def update_display(self,source):
|
||||||
self.model.update_row_by_handle(source.get_handle())
|
self.model.update_row_by_handle(source.get_handle())
|
||||||
|
|
||||||
|
def blist(self,store,path,iter,list):
|
||||||
|
handle = store.get_value(iter,_HANDLE_COL)
|
||||||
|
list.append(handle)
|
||||||
|
|
||||||
def merge(self):
|
def merge(self):
|
||||||
ErrorDialog("NOT IMPLEMENTED",
|
|
||||||
"Need to correct SourceView.merge method.")
|
|
||||||
return
|
|
||||||
mlist = []
|
mlist = []
|
||||||
self.selection.selected_foreach(self.blist,mlist)
|
self.selection.selected_foreach(self.blist,mlist)
|
||||||
|
|
||||||
if len(mlist) != 2:
|
if len(mlist) != 2:
|
||||||
msg = _("Cannot merge sources.")
|
msg = _("Cannot merge sources.")
|
||||||
msg2 = _("Exactly two sources must be selected to perform a merge. "
|
msg2 = _("Exactly two sources must be selected to perform a merge. "
|
||||||
|
Reference in New Issue
Block a user