diff --git a/Gtk4_Reset/src/draw_app/DrawApp.cpp b/Gtk4_Reset/src/draw_app/DrawApp.cpp index 5cb1971..942644d 100644 --- a/Gtk4_Reset/src/draw_app/DrawApp.cpp +++ b/Gtk4_Reset/src/draw_app/DrawApp.cpp @@ -1,5 +1,6 @@ #include "DrawApp.h" #include "MyFinder.h" +#define NAME_MAX 256 typedef enum { diff --git a/Gtk4_Reset/src/mine_app/ScoresItem.cpp b/Gtk4_Reset/src/mine_app/ScoresItem.cpp index d82402f..6bbc085 100644 --- a/Gtk4_Reset/src/mine_app/ScoresItem.cpp +++ b/Gtk4_Reset/src/mine_app/ScoresItem.cpp @@ -1,4 +1,5 @@ #include "ScoresItem.h" +#define NAME_MAX 256 struct _ScoresItem { diff --git a/Gtk4_Reset/src/ui/MyDock.cpp b/Gtk4_Reset/src/ui/MyDock.cpp index da3d0f4..1c1b131 100644 --- a/Gtk4_Reset/src/ui/MyDock.cpp +++ b/Gtk4_Reset/src/ui/MyDock.cpp @@ -106,6 +106,7 @@ static void window_ctrl(GtkWindow *window, GtkWindow *parent) case GDK_TOPLEVEL_STATE_MINIMIZED: gtk_window_set_transient_for(window, parent); gtk_window_unminimize(window); + gtk_window_present(window); break; default: // The controlled window is on dock