From 9ac9f130445fb80d11069665208415f5d57dc754 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Wed, 27 Jun 2007 19:55:35 +0000 Subject: [PATCH] Remove old desired ratio code --- src/interface.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/interface.py b/src/interface.py index 9c95b80d1..e686f03ee 100644 --- a/src/interface.py +++ b/src/interface.py @@ -385,10 +385,6 @@ class DelugeGTK: "queue_down": self.q_torrent_down, "queue_bottom": self.q_to_bottom, "queue_top": self.q_to_top, - "set_ratio0": self.set_ratio_0, - "set_ratio1": self.set_ratio_1, - "set_ratio2": self.set_ratio_2, - "set_ratio3": self.set_ratio_3, }) self.torrent_menu.connect("focus", self.torrent_menu_focus) # UID, Q#, Status Icon, Name, Size, Progress, Message, Seeders, Peers, DL, UL, ETA, Share @@ -547,26 +543,6 @@ class DelugeGTK: except KeyError: pass - def set_ratio_0(self, widget): - unique_ids = self.get_selected_torrent_rows() - for uid in unique_ids: - self.manager.set_ratio(uid, 0) - - def set_ratio_1(self, widget): - unique_ids = self.get_selected_torrent_rows() - for uid in unique_ids: - self.manager.set_ratio(uid, 1) - - def set_ratio_2(self, widget): - unique_ids = self.get_selected_torrent_rows() - for uid in unique_ids: - self.manager.set_ratio(uid, 2) - - def set_ratio_3(self, widget): - unique_ids = self.get_selected_torrent_rows() - for uid in unique_ids: - self.manager.set_ratio(uid, 3) - def torrent_menu_focus(self, widget, direction): menuitem = self.torrent_glade.get_widget("menu_pause") # Check if we are selecting multiple torrents