are you using gutsy or fiesty?
If so, you have the same problem I had.
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
the fix has not been released yet, but if you want to apply it yourself, simply replace the contents of the file at:
~/.config/awn/applets/rtm/awn-rtm.py with the code below:
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
#!/usr/bin/python
#
# RTM Applet
#
# Copyright (c) 2008 Andrew Starr-Bochicchio (andrewsomething) <a.starr.b@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
#
# Thanks to ryancr the gtkmozembed bit from the Meebo Applet.
# And Whise for the work around for the gtkmozebed bug in Gutsy and SUSE.
# And Remember the Milk for such a great web app.
# And of course NJPatel for Avant Window Navigator and the AWN Test Python Applet.
#
#
# TODO: Figure out mozembed profile so that the remember me check box functions.
# Eventually use Remember The Milk's open API and ditch mozembed alltogether.
#
#
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# import modules
import sys, os
import gobject
import pygtk
import gtk
from gtk import gdk
# import gtkmozembed
import webbrowser
import awn
import re
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# workaround for weirdness with regards to Ubuntu + gtkmozembed
if os.path.exists('/etc/issue'):
fp = open('/etc/issue')
os_version = fp.read()
fp.close()
if re.search(r'7\.(?:04|10)', os_version): # feisty or gutsy
os.putenv('LD_LIBRARY_PATH', '/usr/lib/firefox')
os.putenv('MOZILLA_FIVE_HOME', '/usr/lib/firefox')
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
try:
import gtkmozembed
except:
print 'Gtkmozembed is need to run the RTM-Applet, please install python gnome extras.'
###Adapted from workaround for gtkmozembed bug by Whise###
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# set up applet
class App (awn.AppletSimple):
def __init__ (self, uid, orient, height):
awn.AppletSimple.__init__ (self, uid, orient, height)
self.pref_path = os.path.join(os.path.expanduser('~'), ".config/awn/applets/rtm")
self.height = height
icon = gdk.pixbuf_new_from_file(os.path.dirname (__file__) + '/rtm.png')
if height != icon.get_height():
icon = icon.scale_simple(height,height,gtk.gdk.INTERP_BILINEAR)
self.set_icon(icon)
self.title = awn.awn_title_get_default ()
self.dialog = awn.AppletDialog (self)
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# set up gtkmozembed widget
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
self.mo = gtkmozembed;
gtkmozembed.set_profile_path(self.pref_path, "profile")
self.moz = self.mo.MozEmbed()
pad = gtk.Alignment()
pad.add(self.moz)
self.moz.set_size_request(250, 350)
self.moz.load_url('
http://www.rememberthemilk.com/services/modules/googleig/')
pad.show_all()
self.dialog.add(pad)
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
self.showing_dlog = False
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
self.connect ("button-press-event", self.button_press)
self.connect ("enter-notify-event", self.enter_notify)
self.connect ("leave-notify-event", self.leave_notify)
self.dialog.connect ("focus-out-event", self.dialog_focus_out)
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# create context menu
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
def context_menu(self, widget, event):
menu = gtk.Menu()
about_icon = gtk.ImageMenuItem(stock_id=gtk.STOCK_ABOUT)
menu.append(about_icon)
menu.show_all()
menu.popup(None, None, None, event.button, event.get_time())
about_icon.connect_object("activate",self.about,self)
return True
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# button press actions
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
def button_press(self, widget, event):
if event.button == 2:
url = "
http://www.rememberthemilk.com"
webbrowser.open(url)
elif event.button == 3:
self.context_menu(widget, event)
else:
if event.button == 1:
if self.showing_dlog:
self.dialog.hide()
else:
self.dialog.show_all()
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
self.title.hide(self)
self.showing_dlog = not self.showing_dlog
# show dialog
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
def dialog_focus_out (self, widget, event):
self.dialog.hide ()
# print "hide dialog"
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# cursor hover over
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
def enter_notify (self, widget, event):
self.title.show (self, "Remember The Milk")
# print "show title"
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
def leave_notify (self, widget, event):
self.title.hide (self)
# print "hide title"
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
# create gtk about dialog
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
def about(self, widget):
about_dialog = gtk.AboutDialog()
about_dialog.set_logo(gtk.gdk.pixbuf_new_from_file(os.path.dirname (__file__) + '/rtm.png'))
about_dialog.set_name("RTM Applet")
about_dialog.set_version("0.1")
about_dialog.set_copyright("Copyright 2008 LGPL")
# about_dialog.set_license("LGPL")
about_dialog.set_comments("RememberTheMilk is an on-line based prodcutivity application, and the RTM Applet brings it to your desktop. RTM Applet is not endorsed or certified by RememberTheMilk.")
# about_dialog.set_authors(["Andrew Starr-Bochicchio"])
# about_dialog.set_artists(["Andrew Starr-Bochicchio"])
about_dialog.set_website("
http://www.wiki.awn-project.org")
about_dialog.connect("response", lambda d, r: d.destroy())
about_dialog.show()
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
if __name__ == "__main__":
awn.init (sys.argv[1:])
applet = App (awn.uid, awn.orient, awn.height)
awn.init_applet (applet)
applet.show_all ()
gtk.main ()
![Click to quote this passage; Click again to jump to bottom [Q]](engine/grafts/newdefault/images/qq.png)
--
all your base are belong to jesus