2002-04-27 20:26:10 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=4:tabstop=4:
|
|
|
|
*/
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-12-07 08:23:56 +03:00
|
|
|
|
2012-07-30 18:20:58 +04:00
|
|
|
#include "nscore.h" // needed for 'nullptr'
|
2007-02-09 04:33:26 +03:00
|
|
|
#include "nsGTKToolkit.h"
|
2001-12-07 08:23:56 +03:00
|
|
|
|
2012-07-30 18:20:58 +04:00
|
|
|
nsGTKToolkit* nsGTKToolkit::gToolkit = nullptr;
|
2001-12-07 08:23:56 +03:00
|
|
|
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// constructor
|
|
|
|
//
|
|
|
|
//-------------------------------------------------------------------------
|
2007-02-09 04:33:26 +03:00
|
|
|
nsGTKToolkit::nsGTKToolkit()
|
2012-09-14 05:56:59 +04:00
|
|
|
: mFocusTimestamp(0)
|
2001-12-07 08:23:56 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2011-10-25 19:05:32 +04:00
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
// Return the toolkit. If a toolkit does not yet exist, then one will be created.
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
// static
|
|
|
|
nsGTKToolkit* nsGTKToolkit::GetToolkit()
|
2001-12-07 08:23:56 +03:00
|
|
|
{
|
2011-10-25 19:05:32 +04:00
|
|
|
if (!gToolkit) {
|
|
|
|
gToolkit = new nsGTKToolkit();
|
2001-12-07 08:23:56 +03:00
|
|
|
}
|
2011-10-25 19:05:32 +04:00
|
|
|
|
|
|
|
return gToolkit;
|
2001-12-07 08:23:56 +03:00
|
|
|
}
|