[niepce] Show a 0 rating of rating was unset.
- From: Hubert Figuière <hub src gnome org>
- To: svn-commits-list gnome org
- Subject: [niepce] Show a 0 rating of rating was unset.
- Date: Fri, 17 Jul 2009 03:57:07 +0000 (UTC)
commit c34dcc1b213e498833ac77ed1837ea266afe2833
Author: Hubert Figuiere <hub figuiere net>
Date: Wed Jul 15 13:22:39 2009 -0400
Show a 0 rating of rating was unset.
ChangeLog | 4 ++++
src/niepce/ui/librarycellrenderer.cpp | 5 ++++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 51ac9f6..1c5d4e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-07-15 Hubert Figuiere <hub figuiere net>
+
+ * Show a 0 rating of rating was unset.
+
2009-07-14 Hubert Figuiere <hub figuiere net>
* Add cell renderer for the film strip.
diff --git a/src/niepce/ui/librarycellrenderer.cpp b/src/niepce/ui/librarycellrenderer.cpp
index 6195f42..57ab2a2 100644
--- a/src/niepce/ui/librarycellrenderer.cpp
+++ b/src/niepce/ui/librarycellrenderer.cpp
@@ -132,9 +132,12 @@ void drawRating(const Cairo::RefPtr<Cairo::Context> & cr,
const Cairo::RefPtr<Cairo::ImageSurface> & unstar,
const GdkRectangle & r)
{
- if(rating == -1 || !star || !unstar) {
+ if(!star || !unstar) {
return;
}
+ if(rating == -1) {
+ rating = 0;
+ }
int w = star->get_width();
int h = star->get_height();
double x, y;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]