[gnome-tweak-tool] Fix startup apps missing icons
- From: John Stowers <jstowers src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gnome-tweak-tool] Fix startup apps missing icons
 
- Date: Wed, 21 Aug 2013 22:39:02 +0000 (UTC)
 
commit 6a668664cc06b57ce8b8125403df6decfaa9ad33
Author: John Stowers <john stowers gmail com>
Date:   Thu Aug 22 00:38:53 2013 +0200
    Fix startup apps missing icons
 gtweak/tweaks/tweak_group_startup.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_startup.py b/gtweak/tweaks/tweak_group_startup.py
index a0cd247..39aeca9 100644
--- a/gtweak/tweaks/tweak_group_startup.py
+++ b/gtweak/tweaks/tweak_group_startup.py
@@ -112,8 +112,12 @@ class _StartupTweak(Gtk.ListBoxRow, Tweak):
         
         grid = Gtk.Grid(column_spacing=10)
 
-        img = Gtk.Image.new_from_gicon(df.get_icon(),Gtk.IconSize.DIALOG)
-        grid.attach(img, 0, 0, 1, 1)
+        icn = df.get_icon()
+        if icn:
+            img = Gtk.Image.new_from_gicon(icn,Gtk.IconSize.DIALOG)
+            grid.attach(img, 0, 0, 1, 1)
+        else:
+            img = None #attach_next_to treats this correctly
 
         lbl = Gtk.Label(df.get_name(), xalign=0.0)
         grid.attach_next_to(lbl,img,Gtk.PositionType.RIGHT,1,1)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]