~ubuntu-branches/ubuntu/trusty/miro/trusty

« back to all changes in this revision

Viewing changes to portable/frontends/widgets/gtk/tableview.py

  • Committer: Daniel Hahler
  • Date: 2010-04-13 18:51:35 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: ubuntu-launchpad@thequod.de-20100413185135-xi24v1diqg8w406x
Merging shared upstream rev into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Miro - an RSS based video player application
2
 
# Copyright (C) 2005-2009 Participatory Culture Foundation
 
2
# Copyright (C) 2005-2010 Participatory Culture Foundation
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
1011
1011
            if drop_action:
1012
1012
                self.set_drag_dest_row(pos_info[2], pos_info[3])
1013
1013
                break
 
1014
        else:
 
1015
            self.unset_drag_dest_row()
1014
1016
        drag_context.drag_status(drop_action, timestamp)
1015
1017
        return True
1016
1018
 
1017
1019
    def set_drag_dest_row(self, path, position):
1018
1020
        self._widget.set_drag_dest_row(path, position)
1019
1021
 
 
1022
    def unset_drag_dest_row(self):
 
1023
        self._widget.unset_drag_dest_row()
 
1024
 
1020
1025
    def on_drag_leave(self, treeview, drag_context, timestamp):
1021
1026
        treeview.unset_drag_dest_row()
1022
1027