This commit is contained in:
2026-03-20 19:53:55 +03:00
parent 0793a86ebb
commit a2931618b2
21 changed files with 160 additions and 42 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ 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 "first_attempt")
set(BINARY_NAME "casha")
# The unique GTK application identifier for this application. See:
# https://wiki.gnome.org/HowDoI/ChooseApplicationID
set(APPLICATION_ID "com.example.first_attempt")
set(APPLICATION_ID "com.example.casha")
# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
# versions of CMake.
+2 -2
View File
@@ -45,11 +45,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, "first_attempt");
gtk_header_bar_set_title(header_bar, "casha");
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, "first_attempt");
gtk_window_set_title(window, "casha");
}
gtk_window_set_default_size(window, 1280, 720);