mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-31 03:48:10 +00:00
30 lines
425 B
Vala
30 lines
425 B
Vala
|
using Gtk;
|
||
|
using GitgGtk;
|
||
|
|
||
|
class TestProgressGrid
|
||
|
{
|
||
|
public static int main(string[] args)
|
||
|
{
|
||
|
Gtk.init(ref args);
|
||
|
Gitg.init();
|
||
|
|
||
|
var window = new Window();
|
||
|
window.set_default_size(300, 300);
|
||
|
var grid = new ProgressBin();
|
||
|
grid.fraction = 0.3;
|
||
|
window.add(grid);
|
||
|
window.show_all();
|
||
|
|
||
|
window.delete_event.connect((w, ev) => {
|
||
|
Gtk.main_quit();
|
||
|
return true;
|
||
|
});
|
||
|
|
||
|
Gtk.main();
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// vi:ts=4
|