blob: 9a50c952c01ddaf380c24020ea2afe1a914567ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using Deadbeef;
Graphic gr = null;
public static bool
redraw ()
{
gr.queue_draw ();
return true;
}
public static int
main (string[] args)
{
Gtk.init (ref args);
var wnd = new Gtk.Window (Gtk.WindowType.TOPLEVEL);
wnd.destroy.connect (Gtk.main_quit);
gr = new Graphic ();
Graphic.inst = gr;
wnd.add (gr);
gr.show();
wnd.show();
Timeout.add (50, redraw);
Gtk.main();
return 0;
}
|