summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@gnome.org>2011-04-16 13:29:46 -0400
committerShaun McCance <shaunm@gnome.org>2011-04-16 13:29:46 -0400
commit8603ba3a1042e962cbc70e3a1c769f7bfc78e404 (patch)
treeb3067c1356a08b4a46f404920fe6ed1f83df5228
parent9dcb90e3d9d4b34d8c363f53bb4e1c39da7317c5 (diff)
downloadyelp-8603ba3a1042e962cbc70e3a1c769f7bfc78e404.tar.gz
yelp-location-entry: Don't use image-loading when loading, for now
The non-symbolic looks out of place with the symbolic page icons. GtkEntry also doesn't properly do symbolic icons, so setting it to the (non-existant) image-loading-symbolic causes a broken image icon.
-rw-r--r--libyelp/yelp-location-entry.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libyelp/yelp-location-entry.c b/libyelp/yelp-location-entry.c
index f4c1ea02..493dab25 100644
--- a/libyelp/yelp-location-entry.c
+++ b/libyelp/yelp-location-entry.c
@@ -795,9 +795,14 @@ location_entry_set_entry (YelpLocationEntry *entry, gboolean emit)
HISTORY_COL_PAGE, &page_id,
-1);
if (flags & LOCATION_ENTRY_IS_LOADING) {
+ /* Would be nice to have a "loading" icon. I was using image-loading,
+ * but it look out of place with symbolic page icons. Plus, using
+ * image-loading-symbolic shows a broken image, because GtkEntry
+ * doesn't correctly use symbolic icons as of GNOME 3.0.
+ */
gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->text_entry),
GTK_ENTRY_ICON_PRIMARY,
- "image-loading-symbolic");
+ "yelp-page-symbolic");
if (priv->pulse > 0)
g_source_remove (priv->pulse);
priv->pulse = g_timeout_add (80, location_entry_pulse, entry);