[pitivi] Focus the timeline by default



commit 92ab7ca2b28dc289132807bf9d8e76f5c842bfb4
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Mon Feb 17 17:52:43 2014 +0100

    Focus the timeline by default
    
    This fixes a bug: when the app is started and a project is loaded, then
    the media library search field is clicked and "s" is typed it has effect
    on the timeline. This happens because the timeline deactivates they
    key-actions only when it loses focus.

 pitivi/mainwindow.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/mainwindow.py b/pitivi/mainwindow.py
index 767b84a..e37f835 100644
--- a/pitivi/mainwindow.py
+++ b/pitivi/mainwindow.py
@@ -456,6 +456,9 @@ class PitiviMainWindow(Gtk.Window, Loggable):
         self.connect("delete-event", self._deleteCb)
         self.connect("configure-event", self._configureCb)
 
+        # Focus the timeline by default!
+        self.timeline_ui.grab_focus()
+
     def switchContextTab(self, bElement):
         """
         Switch the tab being displayed on the second set of tabs,


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