OSDN Git Service

bug fix
authorHirotaka Kawata <hirotaka@techno-st.net>
Thu, 26 Jan 2012 16:47:30 +0000 (01:47 +0900)
committerHirotaka Kawata <hirotaka@techno-st.net>
Thu, 26 Jan 2012 16:47:30 +0000 (01:47 +0900)
gwitlib/main.py
gwitlib/ui/gwit.ui

index 2410a62..89fe360 100644 (file)
@@ -227,11 +227,15 @@ class Main(object):
     
     # Window close event
     def close(self, widget):
-        # Save Allocation (window position, size)
         window = self.builder.get_object("window1")
+
+        # Save Allocation (window position, size)
         alloc = repr(window.allocation)
         Config.save("DEFAULT", "allocation", alloc)
         
+        # hide window
+        window.hide_all()
+        
         # Stop Icon Refresh
         self.iconstore.stop()
     
@@ -452,7 +456,7 @@ class Main(object):
     
     def _status_update(self, status):
         args = dict()
-
+        
         gtk.gdk.threads_enter()
         self.textview.set_sensitive(False)
         self.btnupdate.set_sensitive(False)
@@ -839,7 +843,7 @@ class Main(object):
         dialog.vbox.pack_start(entry)
         dialog.show_all()
         dialog.run()
-        text = entry.get_text()
+        text = entry.get_text().decode("utf-8")
         dialog.destroy()
         
         params = {"track" : text.split(",")}
index 4dd42e0..c42bcd1 100644 (file)
@@ -1442,6 +1442,7 @@ http://www.tsukuba-linux.org/</property>
                         <property name="use_stock">True</property>
                         <property name="always_show_image">True</property>
                         <signal name="activate" handler="close" swapped="no"/>
+                        <signal name="activate" handler="exit" after="yes" swapped="no"/>
                       </object>
                     </child>
                   </object>