[meld] When opening new tabs from the command line, bring new tab to the front



commit e5b4eb184cb0e35f6ce9af446695fd6a6a0fc0c3
Author: Richard Simmons <risimmonsuk gmail com>
Date:   Mon Jul 1 10:08:47 2013 +0100

    When opening new tabs from the command line, bring new tab to the front

 meld/dbus_service.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meld/dbus_service.py b/meld/dbus_service.py
index 6b446ea..6e5b249 100644
--- a/meld/dbus_service.py
+++ b/meld/dbus_service.py
@@ -41,11 +41,13 @@ class DBusProvider(dbus.service.Object):
 
         If a valid timestamp is not available, pass 0.
         """
-        self.app.window.open_paths(args)
+        tab = self.app.window.open_paths(args)
         if timestamp > 0:
             self.app.window.widget.present_with_time(timestamp)
         else:
             self.app.window.widget.present()
+        self.app.window.notebook.set_current_page(
+            self.app.window.notebook.page_num(tab.widget))
 
 
 def setup(app):


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