[pitivi] startupwizard : Remove ugly/crack code



commit bed18138a72708ab66113ac31ce5de7dd957d512
Author: Edward Hervey <bilboed bilboed com>
Date:   Sun Jan 30 17:35:05 2011 +0100

    startupwizard : Remove ugly/crack code
    
    DO NOT DO THIS ! If you want to hide the combobox, go ask the gtk
    team to add methods to do this.
    
    Avoids crashing

 pitivi/ui/startupwizard.py |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/pitivi/ui/startupwizard.py b/pitivi/ui/startupwizard.py
index 037b943..6101562 100644
--- a/pitivi/ui/startupwizard.py
+++ b/pitivi/ui/startupwizard.py
@@ -37,28 +37,6 @@ class StartUpWizard(object):
         filtre.set_name("Projects")
         filtre.add_pattern("*.xptv")
         chooser.add_filter(filtre)
-        chooser.get_children()[0].get_children()[1].\
-        get_children()[0].hide()
-
-        # FIXME: the gtk.RecentChooserWidget crashes the application when the
-        # user drags a file from its treeview to any other window.
-
-        # First we find the treeview using depth-first search:
-
-        def find_treeview(widget):
-            stack = [widget]
-            while stack:
-                cur = stack.pop()
-                if isinstance(cur, gtk.TreeView):
-                    return cur
-                elif isinstance(cur, gtk.Container):
-                    stack.extend(cur.get_children())
-            return None
-
-        treeview = find_treeview(chooser)
-
-        # then unset the window as a drag source
-        treeview.drag_source_unset()
 
     def _newProjectCb(self, unused_button4):
         self.quit()



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