[Xword-commits] r79 - trunk

btb at garage.maemo.org btb at garage.maemo.org
Sat May 10 04:56:20 EEST 2008


Author: btb
Date: 2008-05-10 04:56:19 +0300 (Sat, 10 May 2008)
New Revision: 79

Modified:
   trunk/xword
Log:
replace status bar, use for non-hildon notify


Modified: trunk/xword
===================================================================
--- trunk/xword	2008-05-10 01:27:22 UTC (rev 78)
+++ trunk/xword	2008-05-10 01:56:19 UTC (rev 79)
@@ -1351,6 +1351,9 @@
                 child.reparent(menu)
             self.win.set_menu(menu)
             self.menubar.destroy()
+        else:
+            self.status_bar = gtk.Statusbar()
+            menubox.pack_start(self.status_bar, False, False, 0)
 
         win.show_all()
 
@@ -1403,8 +1406,7 @@
         self.load_list(ACROSS)
         self.load_list(DOWN)
         self.enable_controls(True)
-        if has_hildon:
-            self.notify("Opened puzzle '" + self.puzzle.title + "'")
+        self.notify("Opened puzzle '" + self.puzzle.title + "'")
 
         self.idle_event()
 
@@ -1479,12 +1481,7 @@
         if has_hildon:
             hildon.hildon_banner_show_information(self.win, None, msg)
         else:
-            dialog = gtk.MessageDialog(parent=self.win,
-                                       type=gtk.MESSAGE_INFO,
-                                       buttons=gtk.BUTTONS_OK,
-                                       message_format=msg)
-            dialog.connect("response", lambda dlg, resp: dlg.destroy())
-            dialog.show()
+            self.status_bar.push(self.status_bar.get_context_id('stat'), msg)
 
     def ask(self, msg, opts):
         dialog = gtk.MessageDialog(parent=self.win,



More information about the Xword-commits mailing list