electron/atom/browser/ui/tray_icon_gtk.cc

19 lines
442 B
C++
Raw Normal View History

// Copyright (c) 2014 GitHub, Inc. All rights reserved.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/browser/ui/gtk/status_icon.h"
#include "atom/browser/ui/gtk/app_indicator_icon.h"
namespace atom {
2014-05-30 15:57:54 +00:00
// static
TrayIcon* TrayIcon::Create() {
if (AppIndicatorIcon::CouldOpen())
return new AppIndicatorIcon;
else
return new StatusIcon;
2014-05-30 15:57:54 +00:00
}
} // namespace atom