michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* vim:expandtab:shiftwidth=4:tabstop=4: michael@0: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nscore.h" // needed for 'nullptr' michael@0: #include "nsGTKToolkit.h" michael@0: michael@0: nsGTKToolkit* nsGTKToolkit::gToolkit = nullptr; michael@0: michael@0: //------------------------------------------------------------------------- michael@0: // michael@0: // constructor michael@0: // michael@0: //------------------------------------------------------------------------- michael@0: nsGTKToolkit::nsGTKToolkit() michael@0: : mFocusTimestamp(0) michael@0: { michael@0: } michael@0: michael@0: //------------------------------------------------------------------------------- michael@0: // Return the toolkit. If a toolkit does not yet exist, then one will be created. michael@0: //------------------------------------------------------------------------------- michael@0: // static michael@0: nsGTKToolkit* nsGTKToolkit::GetToolkit() michael@0: { michael@0: if (!gToolkit) { michael@0: gToolkit = new nsGTKToolkit(); michael@0: } michael@0: michael@0: return gToolkit; michael@0: }