linux: Fix building
This commit is contained in:
parent
f17673be9c
commit
ef7a60807b
1 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
||||||
#include "base/strings/utf_string_conversions.h"
|
#include "base/strings/utf_string_conversions.h"
|
||||||
#include "chrome/browser/ui/libgtk2ui/app_indicator_icon.h"
|
#include "chrome/browser/ui/libgtk2ui/app_indicator_icon.h"
|
||||||
#include "chrome/browser/ui/libgtk2ui/gtk2_status_icon.h"
|
#include "chrome/browser/ui/libgtk2ui/gtk2_status_icon.h"
|
||||||
|
#include "ui/gfx/image/image.h"
|
||||||
|
|
||||||
namespace atom {
|
namespace atom {
|
||||||
|
|
||||||
|
@ -25,10 +26,10 @@ void TrayIconGtk::SetImage(const gfx::Image& image) {
|
||||||
|
|
||||||
base::string16 empty;
|
base::string16 empty;
|
||||||
if (libgtk2ui::AppIndicatorIcon::CouldOpen())
|
if (libgtk2ui::AppIndicatorIcon::CouldOpen())
|
||||||
icon_.reset(
|
icon_.reset(new libgtk2ui::AppIndicatorIcon(
|
||||||
new libgtk2ui::AppIndicatorIcon(base::GenerateGUID(), image, empty));
|
base::GenerateGUID(), image.AsImageSkia(), empty));
|
||||||
else
|
else
|
||||||
icon_.reset(new libgtk2ui::Gtk2StatusIcon(image, empty));
|
icon_.reset(new libgtk2ui::Gtk2StatusIcon(image.AsImageSkia(), empty));
|
||||||
icon_->set_delegate(this);
|
icon_->set_delegate(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue