gnome-system-monitor r2284 - trunk/src



Author: bdejean
Date: Fri Jan 25 18:41:01 2008
New Revision: 2284
URL: http://svn.gnome.org/viewvc/gnome-system-monitor?rev=2284&view=rev

Log:
Don't re-throw Gtk::IconThemeError because the icon loading might also fail
because of a broken file, etc.


Modified:
   trunk/src/iconthemewrapper.cpp

Modified: trunk/src/iconthemewrapper.cpp
==============================================================================
--- trunk/src/iconthemewrapper.cpp	(original)
+++ trunk/src/iconthemewrapper.cpp	Fri Jan 25 18:41:01 2008
@@ -16,7 +16,7 @@
   catch (Gtk::IconThemeError &error)
     {
       if (error.code() != Gtk::IconThemeError::ICON_THEME_NOT_FOUND)
-	throw;
+	g_error("Cannot load icon '%s' from theme: %s", icon_name.c_str(), error.what().c_str());
       return Glib::RefPtr<Gdk::Pixbuf>();
     }
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]