The Client class provides a nice, high-level async API for client-server communication.
20 lines
505 B
Vala
20 lines
505 B
Vala
namespace StudySystemClient {
|
|
public class MainWindow : Gtk.ApplicationWindow {
|
|
public MainWindow(Gtk.Application app, Client client) {
|
|
Object(application: app);
|
|
|
|
default_width = 360;
|
|
default_height = 580;
|
|
|
|
var header_bar = new Gtk.HeaderBar();
|
|
var title = new Gtk.Label("Study System Client");
|
|
title.add_css_class("title");
|
|
header_bar.title_widget = title;
|
|
set_titlebar(header_bar);
|
|
|
|
var activities_view = new ActivitiesView(client);
|
|
set_child(activities_view);
|
|
}
|
|
}
|
|
}
|