[galeon] Galeon icon as fallback spinner.
- From: Fabio Bonelli <fabiob src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [galeon] Galeon icon as fallback spinner.
- Date: Sun, 2 May 2010 15:32:08 +0000 (UTC)
commit 2dca06f69f6edc77dbf5fe1a21ba6eadddc00f8d
Author: Fabio Bonelli <fabiob src gnome org>
Date: Sun May 2 17:09:59 2010 +0200
Galeon icon as fallback spinner.
When gnome-spinner-rest theme icon can't be found don't complain
and use the main galeon window icon which is slightly less inappropriate
than an empty lookin space on the toolbar.
Patch galeon-2.0.7-spinnericon.patch from Fedora.
src/galeon-spinner.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/galeon-spinner.c b/src/galeon-spinner.c
index 519caad..860641a 100644
--- a/src/galeon-spinner.c
+++ b/src/galeon-spinner.c
@@ -199,7 +199,8 @@ select_spinner_image (GaleonSpinner *spinner)
GList *element;
if (spinner->details->timer_task == 0) {
- return g_object_ref (spinner->details->quiescent_pixbuf);
+ return (spinner->details->quiescent_pixbuf != NULL) ?
+ g_object_ref (spinner->details->quiescent_pixbuf) : NULL;
}
if (spinner->details->image_list == NULL) {
@@ -594,8 +595,7 @@ galeon_spinner_load_images (GaleonSpinner *spinner)
wanted_size, 0, NULL);
if (pixbuf == NULL) {
- g_warning ("Spinner rest icon not found");
- return;
+ pixbuf = gdk_pixbuf_new_from_file (DATADIR "/pixmaps/galeon.png", NULL);
}
spinner->details->quiescent_pixbuf =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]