[dasher: 2/217] Silenced "Save changes" question and made text window higher.
- From: Patrick Welche <pwelche src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dasher: 2/217] Silenced "Save changes" question and made text window higher.
- Date: Sat, 27 Feb 2016 12:00:30 +0000 (UTC)
commit 0be44f088c26d369d49eb5b5c7970451fd445ba2
Author: ipomoena <ipomoena users noreply github com>
Date: Mon Jun 15 11:56:27 2015 -0700
Silenced "Save changes" question and made text window higher.
This is quick and dirty hack. Next steps:
Add undo, so accidental New or Load can be reverted without annoying
yes/no modal dialog popping every time.
Remove code related to unsaved files.
Persist size of text box height
Src/Win32/DasherWindow.cpp | 2 +-
Src/Win32/Widgets/FilenameGUI.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/Src/Win32/DasherWindow.cpp b/Src/Win32/DasherWindow.cpp
index 6184e6c..5be485b 100644
--- a/Src/Win32/DasherWindow.cpp
+++ b/Src/Win32/DasherWindow.cpp
@@ -121,7 +121,7 @@ HWND CDasherWindow::Create() {
m_pSpeedAlphabetBar = new CStatusControl(m_pAppSettings);
m_pSpeedAlphabetBar->Create(hWnd);
- m_pSplitter = new CSplitter(this,100);
+ m_pSplitter = new CSplitter(this, 200);
HWND hSplitter = m_pSplitter->Create(hWnd);
if (!hSplitter)
diff --git a/Src/Win32/Widgets/FilenameGUI.cpp b/Src/Win32/Widgets/FilenameGUI.cpp
index 8f61092..3120bc8 100644
--- a/Src/Win32/Widgets/FilenameGUI.cpp
+++ b/Src/Win32/Widgets/FilenameGUI.cpp
@@ -203,7 +203,7 @@ int CFilenameGUI::QuerySaveFirst() {
WinLocalisation::GetResourceString(IDS_QUERY_SAVE_CHANGES, &ResourceString);
WinLocalisation::GetResourceString(IDS_UNSAVED_CHANGES, &Title);
- return MessageBox(WindowWithTitlebar, ResourceString.c_str(), Title.c_str(), MB_YESNOCANCEL |
MB_ICONWARNING | MB_DEFBUTTON1 | MB_APPLMODAL);
+ return IDNO;// MessageBox(WindowWithTitlebar, ResourceString.c_str(), Title.c_str(), MB_YESNOCANCEL |
MB_ICONWARNING | MB_DEFBUTTON1 | MB_APPLMODAL);
}
return IDNO;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]