* src/DataViews/_MediaView.py: cancel drag-n-drop if list is empty
* src/PageView.py: cancel drag-n-drop if list is empty svn: r7571
This commit is contained in:
parent
0b11bd37b1
commit
55daa2ec2d
@ -1,4 +1,6 @@
|
|||||||
2006-11-06 Don Allingham <don@gramps-project.org>
|
2006-11-06 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DataViews/_MediaView.py: cancel drag-n-drop if list is empty
|
||||||
|
* src/PageView.py: cancel drag-n-drop if list is empty
|
||||||
* src/ViewManager.py (ViewManager.about): destroy About dialog
|
* src/ViewManager.py (ViewManager.about): destroy About dialog
|
||||||
after running
|
after running
|
||||||
* src/Editors/_EditPerson.py: Change Unknown Gender dialog to allow
|
* src/Editors/_EditPerson.py: Change Unknown Gender dialog to allow
|
||||||
|
@ -130,7 +130,7 @@ class MediaView(PageView.ListView):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
selected_ids = self.selected_handles()
|
selected_ids = self.selected_handles()
|
||||||
|
if selected_ids:
|
||||||
data = (self.drag_info().drag_type, id(self), selected_ids[0], 0)
|
data = (self.drag_info().drag_type, id(self), selected_ids[0], 0)
|
||||||
sel_data.set(sel_data.target, 8 ,pickle.dumps(data))
|
sel_data.set(sel_data.target, 8 ,pickle.dumps(data))
|
||||||
|
|
||||||
|
@ -575,8 +575,8 @@ class ListView(BookMarkView):
|
|||||||
def drag_data_get(self, widget, context, sel_data, info, time):
|
def drag_data_get(self, widget, context, sel_data, info, time):
|
||||||
selected_ids = self.selected_handles()
|
selected_ids = self.selected_handles()
|
||||||
|
|
||||||
|
if selected_ids:
|
||||||
data = (self.drag_info().drag_type, id(self), selected_ids[0], 0)
|
data = (self.drag_info().drag_type, id(self), selected_ids[0], 0)
|
||||||
|
|
||||||
sel_data.set(sel_data.target, 8 ,pickle.dumps(data))
|
sel_data.set(sel_data.target, 8 ,pickle.dumps(data))
|
||||||
|
|
||||||
def setup_filter(self):
|
def setup_filter(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user