gtk3: don't show "missing" icon for each submenu
authorDaiki Ueno <ueno@unixuser.org>
Wed, 23 May 2012 00:55:38 +0000 (09:55 +0900)
committerDaiki Ueno <ueno@unixuser.org>
Wed, 23 May 2012 00:55:38 +0000 (09:55 +0900)
BUG=none
TEST=manually

Review URL: https://codereview.appspot.com/6211072

ui/gtk3/property.vala

index e24bc40..eb35636 100644 (file)
@@ -126,7 +126,8 @@ public class PropImageMenuItem : Gtk.ImageMenuItem, IPropItem {
 
     private void sync() {
         set_label(m_property.get_label().get_text());
-        set_icon(m_property.get_icon());
+        if (m_property.get_icon() != "")
+            set_icon(m_property.get_icon());
         set_visible(m_property.get_visible());
         set_sensitive(m_property.get_sensitive());
     }