Fix size issue for windows

This commit is contained in:
daleclack 2023-11-06 17:31:24 +08:00
parent 79acc7997d
commit eec32edb4d
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ G_DEFINE_TYPE(MainWin, main_win, GTK_TYPE_APPLICATION_WINDOW)
static void main_win_init(MainWin *win){
// Initalize window
gtk_window_set_default_size(GTK_WINDOW(win), 1024, 576);
// gtk_window_set_default_size(GTK_WINDOW(win), 1024, 576);
gtk_window_set_icon_name(GTK_WINDOW(win), "My_GtkUI");
gtk_window_set_title(GTK_WINDOW(win), "My Gtk UI Gtk4 Version");

View File

@ -65,7 +65,7 @@ static void about_activated(GSimpleAction *action,
"license-type", GTK_LICENSE_GPL_3_0,
"logo-icon-name", "My_GtkUI",
"title", "About My GtkUI Mac Version",
NULL);
NULL, nullptr);
// Free Memory
g_free(version);