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

This commit is contained in:
Hyperling 2025-02-01 03:21:12 -07:00
parent 85b7a0a3e6
commit f820265dba
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ project(runner LANGUAGES CXX)
# The name of the executable created for the application. Change this to change
# the on-disk name of your application.
set(BINARY_NAME "Recurring Expense Tracker")
set(BINARY_NAME "expense_tracker")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "com.hyperling.expense_tracker")

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