~ubuntu-branches/ubuntu/natty/monodevelop/natty

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/libstetic/WidgetUtils.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-01-07 19:06:58 UTC
  • mto: (1.6.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 46.
  • Revision ID: james.westby@ubuntu.com-20100107190658-z9z95lgk4kwfes7p
ImportĀ upstreamĀ versionĀ 2.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
                                        try {
283
283
                                                missingIcon = Gtk.IconTheme.Default.LoadIcon ("gtk-missing-image", 16, 0);
284
284
                                        } catch {}
285
 
                                        if (missingIcon == null)
286
 
                                                missingIcon = Gdk.Pixbuf.LoadFromResource ("missing.png");
 
285
                                        if (missingIcon == null) {
 
286
                                                try {
 
287
                                                        missingIcon = Gdk.Pixbuf.LoadFromResource ("missing.png");
 
288
                                                } catch (Exception e) {
 
289
                                                        Console.WriteLine ("Error while loading pixbuf 'missing.png': " + e);
 
290
                                                }
 
291
                                        }
287
292
                                }
288
293
                                return missingIcon;
289
294
                        }