From b9bff713819ace58d5b79ada0cea616fe8d2212b Mon Sep 17 00:00:00 2001 From: george82 Date: Sat, 9 Sep 2006 14:56:26 +0000 Subject: [PATCH] Removed the unnecessary button "Disconnect" from the vncviewer toolbar. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@654 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/CConn.cxx | 3 --- win/vncviewer/ViewerToolBar.cxx | 4 ---- 2 files changed, 7 deletions(-) diff --git a/win/vncviewer/CConn.cxx b/win/vncviewer/CConn.cxx index bf19bd85..4a5f32da 100644 --- a/win/vncviewer/CConn.cxx +++ b/win/vncviewer/CConn.cxx @@ -239,9 +239,6 @@ CConn::sysCommand(WPARAM wParam, LPARAM lParam) { return true; case IDM_CONN_SAVE_AS: return true; - case ID_CLOSE: - // FIXME: Remove the corresponding toolbar button. - return true; }; return false; } diff --git a/win/vncviewer/ViewerToolBar.cxx b/win/vncviewer/ViewerToolBar.cxx index adc6f07e..66a50c36 100644 --- a/win/vncviewer/ViewerToolBar.cxx +++ b/win/vncviewer/ViewerToolBar.cxx @@ -48,7 +48,6 @@ void ViewerToolBar::create(HWND parentHwnd) { addButton(0, 0, TBSTATE_ENABLED, TBSTYLE_SEP); addButton(13, ID_NEW_CONNECTION); addButton(14, ID_CONN_SAVE_AS); - addButton(15, ID_CLOSE); // Resize the toolbar window autoSize(); @@ -97,9 +96,6 @@ LRESULT ViewerToolBar::processWM_NOTIFY(WPARAM wParam, LPARAM lParam) { case ID_CONN_SAVE_AS: TTStr->lpszText = "Save connection info as..."; break; - case ID_CLOSE: - TTStr->lpszText = "Disconnect"; - break; default: break; } -- 2.39.5