gtk: Add app indicator support as tray icon.

This commit is contained in:
Cheng Zhao 2014-06-01 10:20:06 +08:00
parent 065185baea
commit 9699dbb71f
8 changed files with 329 additions and 4 deletions

View file

@ -3,12 +3,16 @@
// found in the LICENSE file.
#include "atom/browser/ui/gtk/status_icon.h"
#include "atom/browser/ui/gtk/app_indicator_icon.h"
namespace atom {
// static
TrayIcon* TrayIcon::Create() {
return new StatusIcon;
if (AppIndicatorIcon::CouldOpen())
return new AppIndicatorIcon;
else
return new StatusIcon;
}
} // namespace atom