?

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

aredridel
May. 17th, 2005 11:18 am (UTC)
Haha. Nah, "Dock" has never meant much to me. Silly landlocked state I live in...