Found the correct place to set the title info on Linux.

This commit is contained in:
2025-02-01 03:21:12 -07:00
parent 85b7a0a3e6
commit f820265dba
2 changed files with 3 additions and 3 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, "flutter_empty");
gtk_header_bar_set_title(header_bar, "Recurring Expense Tracker");
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, "flutter_empty");
gtk_window_set_title(window, "Recurring Expense Tracker");
}
gtk_window_set_default_size(window, 1280, 720);