?

Log in

No account? Create an account

Previous Entry | Next Entry

I want a Dock

So I'm working on one.

require 'wnck'

Gtk.init

w = Gtk::Window.new
b = Gtk::HBox.new
w.add b

Wnck::Screen.default.force_update
Wnck::Screen.default.windows.each do |win|
        but = Gtk::Button.new
        but.add Gtk::Image.new win.icon
        b.add but
end
w.show_all

Gtk.main

Dock

Comments

he_was_here
May. 17th, 2005 05:32 am (UTC)
How to tell who is the geek...

When I read the subject I was sure you meant a wooden platform on a body of water where you tie boats up.
aredridel
May. 17th, 2005 11:18 am (UTC)
Haha. Nah, "Dock" has never meant much to me. Silly landlocked state I live in...