Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
f-spot
bgo557793.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bgo557793.patch of Package f-spot
From efe65ac1c3ee8f3d01afaa57425926d9390b747a Mon Sep 17 00:00:00 2001 From: sdelcroix <sdelcroix@772769d8-d925-0410-89eb-a6ffa0d40526> Date: Wed, 5 Nov 2008 07:59:27 +0000 Subject: [PATCH] 2008-11-05 Stephane Delcroix <sdelcroix@novell.com> * src/TagSelectionWidget.cs: * src/Core/Tag.cs: fix for bgo 557793 git-svn-id: svn+ssh://svn.gnome.org/svn/f-spot/branches/FSPOT_0_5_0_STABLE@4572 772769d8-d925-0410-89eb-a6ffa0d40526 --- ChangeLog | 5 +++++ src/Core/Tag.cs | 3 +++ src/TagSelectionWidget.cs | 2 +- 3 files changed, 9 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index e1974ae..5cb72e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-05 Stephane Delcroix <sdelcroix@novell.com> + + * src/TagSelectionWidget.cs: + * src/Core/Tag.cs: fix for bgo 557793 + 2008-11-03 Stephane Delcroix <sdelcroix@novell.com> * src/main.cs: backporting the catalog initialization fix from trunk diff --git a/src/Core/Tag.cs b/src/Core/Tag.cs index 42b671a..75b2d3d 100644 --- a/src/Core/Tag.cs +++ b/src/Core/Tag.cs @@ -108,6 +108,9 @@ namespace FSpot if (Math.Max (cached_icon.Width, cached_icon.Height) <= (int) tag_icon_size) return cached_icon; } + if (icon == null) + return null; + if (Math.Max (icon.Width, icon.Height) >= (int) tag_icon_size) { //Don't upscale if (cached_icon != null) cached_icon.Dispose (); diff --git a/src/TagSelectionWidget.cs b/src/TagSelectionWidget.cs index 515dc2a..3516c58 100644 --- a/src/TagSelectionWidget.cs +++ b/src/TagSelectionWidget.cs @@ -192,7 +192,7 @@ public class TagSelectionWidget : FSpot.Widgets.SaneTreeView { SetBackground (renderer, tag); // FIXME I can't set the Pixbuf to null, not sure if it's a GTK# bug... - if (tag.Icon != null) { + if (tag.SizedIcon != null) { if (FSpot.ColorManagement.IsEnabled) { //FIXME Gdk.Pixbuf temp = tag.SizedIcon.Copy(); -- 1.6.0.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor