All pastes #751397 Raw Edit

Mine

public text v1 · immutable
#751397 ·published 2007-10-27 10:54 UTC
rendered paste body
    public class Clock : DrawingArea {

        public Clock () {
            expose_event += widget_exposed;
        }

        private bool widget_exposed (Widget widget, Gdk.EventExpose ev)
        {
            return false;
        }

        static int main (string[] args) {
            Gtk.init (out args);

            Window window = new Window (WindowType.TOPLEVEL);
            Clock clock = new Clock ();

            window.add (clock);
            window.destroy += Gtk.main_quit;

            window.show_all ();

            Gtk.main ();
            return 0;
        }    
    }