[Xword-commits] r120 - trunk
btb at garage.maemo.org
btb at garage.maemo.org
Wed May 28 05:07:59 EEST 2008
Author: btb
Date: 2008-05-28 05:07:59 +0300 (Wed, 28 May 2008)
New Revision: 120
Modified:
trunk/xword
Log:
use Gtk.Window.present() to raise the window up when file loaded via rpc
Modified: trunk/xword
===================================================================
--- trunk/xword 2008-05-27 23:18:14 UTC (rev 119)
+++ trunk/xword 2008-05-28 02:07:59 UTC (rev 120)
@@ -1541,15 +1541,8 @@
gtk.main_quit()
def notify(self, msg):
- # FIXME: we want to use HildonBanner instead of
- # SystemNote, but when a new puzzle is opened via dbus,
- # the user will never see the notification (because xword
- # remains in the background)
- #if has_hildon:
- # hildon.hildon_banner_show_information(self.win, None, msg)
- if has_osso:
- note = osso.SystemNote(osso_c)
- note.system_note_infoprint(msg)
+ if has_hildon:
+ hildon.hildon_banner_show_information(self.win, None, msg)
else:
self.status_bar.push(self.status_bar.get_context_id('stat'), msg)
@@ -2433,6 +2426,7 @@
def osso_callback(interface, method, arguments, user_data):
if method == 'mime_open':
+ w.win.present()
filename = arguments[0]
if filename.startswith('file://'):
filename = filename[7:]
More information about the Xword-commits
mailing list