mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-02 14:13:48 +00:00
37 lines
510 B
Vala
37 lines
510 B
Vala
using Gtk;
|
|
using Gitg;
|
|
|
|
class TestRepositoryListBox
|
|
{
|
|
public static int main(string[] args)
|
|
{
|
|
Gtk.init(ref args);
|
|
|
|
try
|
|
{
|
|
Gitg.init();
|
|
}
|
|
catch (Error e)
|
|
{
|
|
stderr.printf("Failed to initialize ggit: %s\n", e.message);
|
|
return 1;
|
|
}
|
|
|
|
var window = new Window();
|
|
window.set_default_size(300, 300);
|
|
window.add(new RepositoryListBox());
|
|
window.show_all();
|
|
|
|
window.delete_event.connect((w, ev) => {
|
|
Gtk.main_quit();
|
|
return true;
|
|
});
|
|
|
|
Gtk.main();
|
|
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
// vi:ts=4
|