From f820265dba101cfdcf30d4532a71b89827505290 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sat, 1 Feb 2025 03:21:12 -0700 Subject: [PATCH] Found the correct place to set the title info on Linux. --- linux/CMakeLists.txt | 2 +- linux/runner/my_application.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index cf9277a..32e4ad5 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -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") diff --git a/linux/runner/my_application.cc b/linux/runner/my_application.cc index c52a788..84b77a0 100644 --- a/linux/runner/my_application.cc +++ b/linux/runner/my_application.cc @@ -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);