[meld] ui.findbar: No more 2.16



commit 67071a1baa08933ac2e41a2722082dcf5eb982bd
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sat Sep 7 16:54:25 2013 +1000

    ui.findbar: No more 2.16

 meld/ui/findbar.py |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/meld/ui/findbar.py b/meld/ui/findbar.py
index 322bee1..b5510b0 100644
--- a/meld/ui/findbar.py
+++ b/meld/ui/findbar.py
@@ -39,11 +39,7 @@ class FindBar(gnomeglade.Component):
 
     def on_focus_child(self, container, widget):
         if widget is not None:
-            # TODO: Not in PyGtk 2.16; remove this check later
-            if hasattr(self.widget, "get_visible"):
-                visible = self.widget.get_visible()
-            else:
-                visible = self.widget.props.visible
+            visible = self.widget.props.visible
             if widget is not self.widget and visible:
                 self.hide()
         return False


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]