updated on Wed Jan 25 12:16:47 UTC 2012
[aur-mirror.git] / galeon / galeon-2.0.7-spinnericon.patch
blob5b48b740b6dd47a031e713fe9675bb92f679ea43
1 When gnome-spinner-rest theme icon can't be found don't complain
2 and use the main galeon window icon which is slightly less inappropriate
3 than an empty lookin space on the toolbar.
5 ---
6 src/galeon-spinner.c | 6 +++---
7 1 files changed, 3 insertions(+), 3 deletions(-)
9 diff --git a/src/galeon-spinner.c b/src/galeon-spinner.c
10 index 519caad..860641a 100644
11 --- a/src/galeon-spinner.c
12 +++ b/src/galeon-spinner.c
13 @@ -199,7 +199,8 @@ select_spinner_image (GaleonSpinner *spinner)
14 GList *element;
16 if (spinner->details->timer_task == 0) {
17 - return g_object_ref (spinner->details->quiescent_pixbuf);
18 + return (spinner->details->quiescent_pixbuf != NULL) ?
19 + g_object_ref (spinner->details->quiescent_pixbuf) : NULL;
22 if (spinner->details->image_list == NULL) {
23 @@ -594,8 +595,7 @@ galeon_spinner_load_images (GaleonSpinner *spinner)
24 wanted_size, 0, NULL);
26 if (pixbuf == NULL) {
27 - g_warning ("Spinner rest icon not found");
28 - return;
29 + pixbuf = gdk_pixbuf_new_from_file (DATADIR "/pixmaps/galeon.png", NULL);
32 spinner->details->quiescent_pixbuf =
33 --
34 1.6.5.2