mirror of https://github.com/daleclack/My_GtkUi
Fix a issue for text editor
This commit is contained in:
parent
01b4bd2cf7
commit
975eae1b76
|
@ -1,6 +1,6 @@
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
cmake_minimum_required(VERSION 3.5.0)
|
cmake_minimum_required(VERSION 3.5.0)
|
||||||
project(My_GtkUI VERSION 5.7.0)
|
project(My_GtkUI VERSION 5.8.0)
|
||||||
|
|
||||||
#Add GCR_CMake
|
#Add GCR_CMake
|
||||||
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../GCR_CMake/macros)
|
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../GCR_CMake/macros)
|
||||||
|
|
|
@ -87,7 +87,7 @@ void MyWin::about_activated()
|
||||||
|
|
||||||
// Version information
|
// Version information
|
||||||
char *version;
|
char *version;
|
||||||
version = g_strdup_printf("5.7\nRunning Against: Gtkmm %d.%d.%d",
|
version = g_strdup_printf("5.8\nRunning Against: Gtkmm %d.%d.%d",
|
||||||
GTKMM_MAJOR_VERSION,
|
GTKMM_MAJOR_VERSION,
|
||||||
GTKMM_MINOR_VERSION,
|
GTKMM_MINOR_VERSION,
|
||||||
GTKMM_MICRO_VERSION);
|
GTKMM_MICRO_VERSION);
|
||||||
|
|
|
@ -157,7 +157,7 @@ bool TextEditor::window_delete_event(GdkEventAny *event)
|
||||||
|
|
||||||
// Output json data to file
|
// Output json data to file
|
||||||
std::fstream outfile;
|
std::fstream outfile;
|
||||||
outfile.open("config.json", std::ios_base::out);
|
outfile.open("text_config.json", std::ios_base::out);
|
||||||
if (outfile.is_open())
|
if (outfile.is_open())
|
||||||
{
|
{
|
||||||
outfile << data;
|
outfile << data;
|
||||||
|
|
Loading…
Reference in New Issue