?

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

lypanov
May. 17th, 2005 02:13 am (UTC)
Aredridel ++