aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2014-06-27 19:38:39 +0800
committerMilan Crha <mcrha@redhat.com>2014-06-27 19:38:39 +0800
commit4b213ded59a86df5ddb5e66eec8775d1b93befdd (patch)
tree324974669d85fb38224d7db22a3dd09daf634ef8 /addressbook/gui
parent586ab6e32a64e18b78607b3300e82181ee3b11ff (diff)
downloadgsoc2013-evolution-4b213ded59a86df5ddb5e66eec8775d1b93befdd.tar
gsoc2013-evolution-4b213ded59a86df5ddb5e66eec8775d1b93befdd.tar.gz
gsoc2013-evolution-4b213ded59a86df5ddb5e66eec8775d1b93befdd.tar.bz2
gsoc2013-evolution-4b213ded59a86df5ddb5e66eec8775d1b93befdd.tar.lz
gsoc2013-evolution-4b213ded59a86df5ddb5e66eec8775d1b93befdd.tar.xz
gsoc2013-evolution-4b213ded59a86df5ddb5e66eec8775d1b93befdd.tar.zst
gsoc2013-evolution-4b213ded59a86df5ddb5e66eec8775d1b93befdd.zip
Bug 732180 - Excessive CPU usage due to GtkSpinner
Let's use our own spinner-like widget, which doesn't need as that much of CPU as GtkSpinner.
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/e-contact-map-window.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/addressbook/gui/widgets/e-contact-map-window.c b/addressbook/gui/widgets/e-contact-map-window.c
index b2d13c34f0..292d5f3530 100644
--- a/addressbook/gui/widgets/e-contact-map-window.c
+++ b/addressbook/gui/widgets/e-contact-map-window.c
@@ -17,8 +17,10 @@
*
*/
+#ifdef HAVE_CONFIG_H
/* This defines WITH_CONTACT_MAPS. */
#include <config.h>
+#endif
#ifdef WITH_CONTACT_MAPS
@@ -186,7 +188,7 @@ contact_map_window_contact_added_cb (EContactMap *map,
window->priv->tasks_cnt--;
if (window->priv->tasks_cnt == 0) {
- gtk_spinner_stop (GTK_SPINNER (window->priv->spinner));
+ e_spinner_stop (E_SPINNER (window->priv->spinner));
gtk_widget_hide (window->priv->spinner);
}
}
@@ -230,7 +232,7 @@ contact_map_window_geocoding_started_cb (EContactMap *map,
ClutterActor *marker,
EContactMapWindow *window)
{
- gtk_spinner_start (GTK_SPINNER (window->priv->spinner));
+ e_spinner_start (E_SPINNER (window->priv->spinner));
gtk_widget_show (window->priv->spinner);
window->priv->tasks_cnt++;
@@ -244,7 +246,7 @@ contact_map_window_geocoding_failed_cb (EContactMap *map,
window->priv->tasks_cnt--;
if (window->priv->tasks_cnt == 0) {
- gtk_spinner_stop (GTK_SPINNER (window->priv->spinner));
+ e_spinner_stop (E_SPINNER (window->priv->spinner));
gtk_widget_hide (window->priv->spinner);
}
}
@@ -401,7 +403,7 @@ e_contact_map_window_init (EContactMapWindow *window)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 7);
/* Spinner */
- button = gtk_spinner_new ();
+ button = e_spinner_new ();
gtk_container_add (GTK_CONTAINER (hbox), button);
gtk_widget_hide (button);
priv->spinner = button;