Forums

Discuss all things Remember The Milk.

A Little Ruby Script to show tasks in your desktop (Using GTK)

comechao says:
#!/usr/bin/ruby
#
# Remember The Milk Tiny by Tiago Bastos comechao@gmail.com
# Copyright (c) 2006 Tiago Bastos comechao@gmail.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

require 'gtkmozembed'

HOME_URL = 'http://m.rememberthemilk.com/'
Gtk::MozEmbed.set_profile_path(ENV["HOME"] +'/'+ ".rtmtiny", "mozilla")

class RtmTiny
def initialize
@w = Gtk::Window.new 'Rememmber The milk'
@w.title = "Remmember the Milk"
@w.set_default_size(180, 230)
@w.signal_connect("destroy") { Gtk::main_quit }
@w.set_gravity(Gdk::Window::GRAVITY_SOUTH_EAST)
width, height = @w.get_size_request
@w.move(Gdk.screen_width - width,Gdk.screen_height() - height)
load_widget
@w.show_all
end

def load_widget url='http://m.rememberthemilk.com/'
@moz = Gtk::MozEmbed.new
@box = Gtk::VBox.new false
@box.pack_start @moz
@w.add @box
@moz.location = url
end
end

# Main program
if __FILE__ == $0
RtmTiny.new
Gtk.init
Gtk.main
end
Posted at 1:21pm on July 12, 2007
ron.warrick says:
Great! What's a Ruby Script?
Posted 10 years ago
druke says:
is this the same a the GRTM project thats been inactive?
Posted 10 years ago
jjeudymd says:
can you post a screenshot?
Posted 10 years ago
devin.walters says:
Thanks -- works great and let's me avoid using screenlets
Posted 8 years ago
Log in to post a reply.