Permalink
Browse files

Use Gtk.Stock.MissingImage rather than a hardcoded string.

  • Loading branch information...
1 parent c2add36 commit 318ad4c42b4881f1b0147c84dc3cd546b392ec4d @jpobst committed Apr 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Pinta.Resources/ResourceManager.cs
@@ -46,8 +46,8 @@ public static Pixbuf GetIcon (string name, int size)
System.Console.Error.WriteLine (ex.Message);
// Try to return gtk's default missing image
- if (name != "gtk-missing-image")
- return GetIcon ("gtk-missing-image", size);
+ if (name != Gtk.Stock.MissingImage)
+ return GetIcon (Gtk.Stock.MissingImage, size);
// If gtk is missing it's "missing image", we'll create one on the fly
return CreateMissingImage (size);

0 comments on commit 318ad4c

Please sign in to comment.