study-system/client/src/main_window.vala
Camden Dixie O'Brien 9588e88b93 Support more PDUs and create Client class
The Client class provides a nice, high-level async API for
client-server communication.
2025-03-01 10:37:01 +00:00

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);
}
}
}