♻️ Update platform specific code & resources

This commit is contained in:
2024-11-23 22:04:21 +08:00
parent 3cd08da3b6
commit 33be7182d8
16 changed files with 80 additions and 78 deletions

View File

@ -40,11 +40,11 @@ static void my_application_activate(GApplication* application) {
if (use_header_bar) {
GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
gtk_widget_show(GTK_WIDGET(header_bar));
gtk_header_bar_set_title(header_bar, "surface");
gtk_header_bar_set_title(header_bar, "Surface");
gtk_header_bar_set_show_close_button(header_bar, TRUE);
gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
} else {
gtk_window_set_title(window, "surface");
gtk_window_set_title(window, "Surface");
}
gtk_window_set_default_size(window, 1280, 720);