[Xword-commits] r147 - trunk

btb at garage.maemo.org btb at garage.maemo.org
Mon May 18 09:52:22 EEST 2009


Author: btb
Date: 2009-05-18 09:52:22 +0300 (Mon, 18 May 2009)
New Revision: 147

Modified:
   trunk/xword
Log:
Changes necessary to support Ubuntu MID edition (old python-hildon version, no libhildonfm)

Modified: trunk/xword
===================================================================
--- trunk/xword	2008-08-03 04:44:56 UTC (rev 146)
+++ trunk/xword	2009-05-18 06:52:22 UTC (rev 147)
@@ -1561,7 +1561,7 @@
 
     def notify(self, msg):
         if has_hildon:
-            hildon.hildon_banner_show_information(self.win, None, msg)
+            hildon.hildon_banner_show_information(self.win, "qgn_note_infoprint", msg)
         else:
             self.status_bar.push(self.status_bar.get_context_id('stat'), msg)
 
@@ -2167,7 +2167,7 @@
                 button = gtk.ToolButton(self.load_icon(
                          HOME_PATH + os.sep + label + '.xpm'), None)
 
-            if has_hildon:
+            if hasattr(button, "tap_and_hold_setup"):
                 if label == 'Escape':
                     button.tap_and_hold_setup(self.check_popup)
                 elif label == 'F12':
@@ -2363,7 +2363,7 @@
             self.do_open_file(open_dlg.get_filename())
             open_dlg.destroy()
         
-        if has_hildon:
+        if has_hildon and hasattr(hildon, "FileChooserDialog"):
             dlg = hildon.FileChooserDialog(self.win,
                                            gtk.FILE_CHOOSER_ACTION_OPEN)
         else:
@@ -2386,7 +2386,7 @@
             self.do_save_file(save_dlg.get_filename())
             save_dlg.destroy()
         
-        if has_hildon:
+        if has_hildon and hasattr(hildon, "FileChooserDialog"):
             dlg = hildon.FileChooserDialog(self.win,
                                            gtk.FILE_CHOOSER_ACTION_SAVE)
         else:



More information about the Xword-commits mailing list