From 117ecf438b63318b73580e6aa0377bf248a966c7 Mon Sep 17 00:00:00 2001 From: daleclack Date: Thu, 11 Nov 2021 18:00:27 +0800 Subject: [PATCH] Fix dialog for longterm version --- XeRelease_Gtkmm3/.vscode/c_cpp_properties.json | 2 +- XeRelease_Gtkmm3/src/MyWin.cc | 4 ++-- XeRelease_Gtkmm3/src/xe_config | 6 ------ 3 files changed, 3 insertions(+), 9 deletions(-) delete mode 100644 XeRelease_Gtkmm3/src/xe_config diff --git a/XeRelease_Gtkmm3/.vscode/c_cpp_properties.json b/XeRelease_Gtkmm3/.vscode/c_cpp_properties.json index 13056cf..adcb115 100644 --- a/XeRelease_Gtkmm3/.vscode/c_cpp_properties.json +++ b/XeRelease_Gtkmm3/.vscode/c_cpp_properties.json @@ -85,7 +85,7 @@ "compilerArgs": [ "`pkg-config --cflags --libs gtkmm-3.0`" ], - "configurationProvider": "ms-vscode.cmake-tools" + "configurationProvider": "${workspaceFolder}/builddir/compile_commands.json" }, { "name": "win32", diff --git a/XeRelease_Gtkmm3/src/MyWin.cc b/XeRelease_Gtkmm3/src/MyWin.cc index e7c1555..5894094 100644 --- a/XeRelease_Gtkmm3/src/MyWin.cc +++ b/XeRelease_Gtkmm3/src/MyWin.cc @@ -131,10 +131,10 @@ void MyWin::main_releases(){ if(readCfgFile("xe_config","Longterm",ver)){ longterm(local,ver.c_str(),str); msg_dialog.Init(str); - msg_dialog.present(); + msg_dialog.show_all(); }else{ msg_dialog.Init("The config doesn't exist!\nPlease use \"Config\" menu to set releases"); - msg_dialog.present(); + msg_dialog.show_all(); } break; case Releases::Stable: diff --git a/XeRelease_Gtkmm3/src/xe_config b/XeRelease_Gtkmm3/src/xe_config deleted file mode 100644 index 7e9eb3e..0000000 --- a/XeRelease_Gtkmm3/src/xe_config +++ /dev/null @@ -1,6 +0,0 @@ -This is the config file of Xe Release -See more on github.com/daleclack/Xe-Release - -Longterm=default_config -Stable=default_config -Develop=default_config