diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-spinner.c | 9 |
2 files changed, 15 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2004-07-03 Christian Persch <chpe@cvs.gnome.org> + * lib/widgets/ephy-spinner.c: (ephy_spinner_load_images): + + Add profiler calls. + +2004-07-03 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/mozilla-embed-single.cpp: Mozilla API change. diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 8145e17ae..e84afa68a 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -33,6 +33,7 @@ #endif #include "ephy-spinner.h" +#include "ephy-debug.h" #include <gdk-pixbuf/gdk-pixbuf.h> #include <gtk/gtkicontheme.h> @@ -440,11 +441,15 @@ ephy_spinner_load_images (EphySpinner *spinner) ephy_spinner_unload_images (spinner); + START_PROFILER ("loading spinner animation") + /* Load the animation */ icon_info = gtk_icon_theme_lookup_icon (spinner->details->icon_theme, "gnome-spinner", -1, 0); if (icon_info == NULL) { + STOP_PROFILER ("loading spinner animation") + g_warning ("Throbber animation not found"); return; } @@ -485,6 +490,8 @@ ephy_spinner_load_images (EphySpinner *spinner) "gnome-spinner-rest", -1, 0); if (icon_info == NULL) { + STOP_PROFILER ("loading spinner animation") + g_warning ("Throbber rest icon not found"); return; } @@ -498,6 +505,8 @@ ephy_spinner_load_images (EphySpinner *spinner) g_object_unref (icon_pixbuf); gtk_icon_info_free (icon_info); + + STOP_PROFILER ("loading spinner animation") } /* |