wicd: fix missing application icon

+20
+1
pkgs/tools/networking/wicd/default.nix
··· 24 ./no-optimization.patch 25 ./dhclient.patch 26 ./no-ast-transl.patch 27 ]; 28 29 # Should I be using pygtk's propogated build inputs?
··· 24 ./no-optimization.patch 25 ./dhclient.patch 26 ./no-ast-transl.patch 27 + ./fix-app-icon.patch 28 ]; 29 30 # Should I be using pygtk's propogated build inputs?
+19
pkgs/tools/networking/wicd/fix-app-icon.patch
···
··· 1 + Someone forgot to pack wicd.png icon. We will replace it with existing one. 2 + 3 + diff -ruN wicd-1.7.2.4.orig/gtk/gui.py wicd-1.7.2.4/gtk/gui.py 4 + --- wicd-1.7.2.4.orig/gtk/gui.py 2013-03-30 21:47:19.802907553 +0000 5 + +++ wicd-1.7.2.4/gtk/gui.py 2013-03-31 08:13:32.876871673 +0000 6 + @@ -205,8 +205,10 @@ 7 + 8 + self.status_area.hide_all() 9 + 10 + - if os.path.exists(os.path.join(wpath.images, "wicd.png")): 11 + - self.window.set_icon_from_file(os.path.join(wpath.images, "wicd.png")) 12 + + if os.path.exists(os.path.join(wpath.images, "../../icons/hicolour/128x128/apps/wicd-gtk.png")): 13 + + self.window.set_icon_from_file(os.path.join(wpath.images, "../../icons/hicolour/128x128/apps/wicd-gtk.png")) 14 + + else: 15 + + print 'icon doesn\'t exist %s' % os.path.join(wpath.images, "../../icons/hicolour/128x128/apps/wicd-gtk.png") 16 + self.statusID = None 17 + self.first_dialog_load = True 18 + self.is_visible = True 19 +