X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2Fmenubar.cxx;h=5675b14e434d2507c07d132ef0b0e4e6c927f584;hb=0f7f7fce6bd57bea6c93f5d40c89f1b741edff45;hp=3cd03bbcc494022e4b02184e63487f91da6b20fa;hpb=446c2064a572a79951b16261fbb1b8908d2a3aca;p=flightgear.git diff --git a/src/GUI/menubar.cxx b/src/GUI/menubar.cxx index 3cd03bbcc..5675b14e4 100644 --- a/src/GUI/menubar.cxx +++ b/src/GUI/menubar.cxx @@ -36,16 +36,6 @@ do_hires_snapshot_dialog (const SGPropertyNode * arg) } #endif // TR_HIRES_SNAP -#if defined( _WIN32 ) && !defined(__MINGW32__) -extern void printScreen (); -static bool -do_print_dialog (const SGPropertyNode * arg) -{ - printScreen(); - return true; -} -#endif - extern void helpCb (); static bool do_help_dialog (const SGPropertyNode * arg) @@ -60,9 +50,6 @@ static struct { } deprecated_dialogs [] = { #if defined(TR_HIRES_SNAP) { "old-hires-snapshot-dialog", do_hires_snapshot_dialog }, -#endif -#if defined( _WIN32 ) && !defined(__MINGW32__) - { "old-print-dialog", do_print_dialog }, #endif { "old-help-dialog", do_help_dialog }, { 0, 0 } @@ -258,7 +245,7 @@ FGMenuBar::destroy_menubar () // Delete all the character arrays // we were forced to keep around for // plib. - SG_LOG(SG_GENERAL, SG_INFO, "Deleting char arrays"); + SG_LOG(SG_GENERAL, SG_BULK, "Deleting char arrays"); for (i = 0; i < _char_arrays.size(); i++) { for (int j = 0; _char_arrays[i][j] != 0; j++) free(_char_arrays[i][j]); // added with strdup @@ -268,20 +255,20 @@ FGMenuBar::destroy_menubar () // Delete all the callback arrays // we were forced to keep around for // plib. - SG_LOG(SG_GENERAL, SG_INFO, "Deleting callback arrays"); + SG_LOG(SG_GENERAL, SG_BULK, "Deleting callback arrays"); for (i = 0; i < _callback_arrays.size(); i++) delete[] _callback_arrays[i]; // Delete all those bindings - SG_LOG(SG_GENERAL, SG_INFO, "Deleting bindings"); + SG_LOG(SG_GENERAL, SG_BULK, "Deleting bindings"); map >::iterator it; for (it = _bindings.begin(); it != _bindings.end(); it++) { - SG_LOG(SG_GENERAL, SG_INFO, "Deleting bindings for " << it->first); + SG_LOG(SG_GENERAL, SG_BULK, "Deleting bindings for " << it->first); for ( i = 0; i < it->second.size(); i++ ) delete it->second[i]; } - SG_LOG(SG_GENERAL, SG_INFO, "Done."); + SG_LOG(SG_GENERAL, SG_BULK, "Done."); } void @@ -356,7 +343,7 @@ FGMenuBar::add_enabled_listener(SGPropertyNode * node) bool FGMenuBar::enable_item(const SGPropertyNode * node, bool state) { - const char *path = node->getPath(); + string path = node->getPath(); if (_objects.find(path) == _objects.end()) { SG_LOG(SG_GENERAL, SG_ALERT, "Trying to enable/disable " "non-existent menu item for node `" << path << '\'');