Re: [Tracker] [PATCH] Fix date field in metadata tile



On Sun, 2007-05-27 at 04:38 -0700, Eric Lesh wrote:
The metadata tile doesn't update the date field at all if it's given an
empty date.  This means that clicking a dateless document leaves some
other document's data in the tile.

---
 src/libtracker-gtk/tracker-metadata-tile.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/libtracker-gtk/tracker-metadata-tile.c b/src/libtracker-gtk/tracker-metadata-tile.c
index f1e155c..243dd92 100644
--- a/src/libtracker-gtk/tracker-metadata-tile.c
+++ b/src/libtracker-gtk/tracker-metadata-tile.c
@@ -606,11 +606,11 @@ _date_to_label (GtkWidget *label, const char *iso, const char *string)
              g_date_set_time_val (date, &val);
              g_date_strftime(buf,256,"%a %d %b %Y", date);
                 temp = g_strdup_printf (string, buf);
-             gtk_label_set_markup (GTK_LABEL (label), temp);
-             g_free (temp);
+     } else {
+             temp = g_strdup_printf (string, _("Unknown"));
      }
-     
-     
+     gtk_label_set_markup (GTK_LABEL (label), temp);
+     g_free (temp);
 }
 
 /* Checks that a property is valid, parses it to play nicely wth pango */


fixed thx





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]