summaryrefslogtreecommitdiff
path: root/panel
diff options
authorMichael Vogt <michael.vogt@ubuntu.com>2015-12-11 17:37:08 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2015-12-11 17:37:08 +0100
commit8f90e7d856f3663f3ddbff11148377c9b128174f (patch)
tree8ac95dc9b44c5a3f82e055e2c43fa0591d0bacfc /panel
parent3b578768fefb86fbb66b741d4d6dc02d33a5827c (diff)
address another review comments (thanks to Trevino!)
(bzr r4036.8.4)
Diffstat (limited to 'panel')
-rw-r--r--panel/PanelIndicatorEntryView.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/panel/PanelIndicatorEntryView.cpp b/panel/PanelIndicatorEntryView.cpp
index 083296024..92c6b866e 100644
--- a/panel/PanelIndicatorEntryView.cpp
+++ b/panel/PanelIndicatorEntryView.cpp
@@ -205,8 +205,12 @@ void PanelIndicatorEntryView::SetActiveState(bool active, int button)
glib::Object<GdkPixbuf> PanelIndicatorEntryView::MakePixbuf(int size)
{
glib::Object<GdkPixbuf> pixbuf;
- auto image_type = proxy_->image_type();
+ // see if we need to do anything
+ if (!proxy_->image_visible() || proxy_->image_data().empty())
+ return pixbuf;
+
+ auto image_type = proxy_->image_type();
switch (image_type)
{
case GTK_IMAGE_PIXBUF: