[dots] Set window title correctly (thanks to Joanmarie Diggs)



commit 4872f8ac609d88ead1679fccd88a6b633181624b
Author: Fernando Herrera <fherrera onirica com>
Date:   Wed Dec 1 23:54:50 2010 +0100

    Set window title correctly (thanks to Joanmarie Diggs)

 data/app_window.xml |    1 +
 dots/app_window.py  |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/app_window.xml b/data/app_window.xml
index 551ddd3..201b5fd 100644
--- a/data/app_window.xml
+++ b/data/app_window.xml
@@ -70,6 +70,7 @@
   <object class="GtkWindow" id="window1">
     <property name="default_width">480</property>
     <property name="default_height">360</property>
+    <property name="title">Dots</property>
     <signal name="delete-event" handler="_onQuit" swapped="no"/>
     <child>
       <object class="GtkVBox" id="vbox1">
diff --git a/dots/app_window.py b/dots/app_window.py
index 28475e6..30e36bc 100644
--- a/dots/app_window.py
+++ b/dots/app_window.py
@@ -366,7 +366,7 @@ class AppWindow(object):
             self.project.view_ascii()
         else:
             self.project.view_braille()
-	self.window.set_title(os.path.basename(document.input_file) + " - dots")
+	self.window.set_title("Dots - " + os.path.basename(document.input_file))
 	self.project.connect("line-changed", self._onLineChanged)
 
     def translate(self, document, config):



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