From 928db3a71b7515960b577efa1d1c20520be8d065 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Oct 2007 08:02:16 +0000 Subject: [PATCH] Fix the time_t typecasting on OpenSolaris. (#465380, Takao Fujiwara) 2007-10-10 Emmanuele Bassi * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Fix the time_t typecasting on OpenSolaris. (#465380, Takao Fujiwara) svn path=/trunk/; revision=18902 --- ChangeLog | 5 +++++ gtk/gtkfilechooserdefault.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c2d2a2ce05..40777eed00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-10 Emmanuele Bassi + + * gtk/gtkfilechooserdefault.c (list_mtime_data_func): Fix the + time_t typecasting on OpenSolaris. (#465380, Takao Fujiwara) + 2007-10-09 Matthias Clasen * configure.in: Make the previous change work diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index ae5a0b3f76..47d0b81caa 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -11023,7 +11023,7 @@ list_mtime_data_func (GtkTreeViewColumn *tree_column, gpointer data) { GtkFileChooserDefault *impl; - GtkFileTime time_mtime; + time_t time_mtime; gchar *date_str = NULL; gboolean sensitive = TRUE; @@ -11063,7 +11063,7 @@ list_mtime_data_func (GtkTreeViewColumn *tree_column, -1); if (info) - time_mtime = (GtkFileTime) gtk_recent_info_get_modified (info); + time_mtime = gtk_recent_info_get_modified (info); else time_mtime = 0; @@ -11085,7 +11085,7 @@ list_mtime_data_func (GtkTreeViewColumn *tree_column, return; } - time_mtime = gtk_file_info_get_modification_time (info); + time_mtime = (time_t) gtk_file_info_get_modification_time (info); if (impl->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER || impl->action == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER)