Fix the time_t typecasting on OpenSolaris. (#465380, Takao Fujiwara)

2007-10-10  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkfilechooserdefault.c (list_mtime_data_func): Fix the
	time_t typecasting on OpenSolaris. (#465380, Takao Fujiwara)

svn path=/trunk/; revision=18902
This commit is contained in:
Emmanuele Bassi 2007-10-10 08:02:16 +00:00 committed by Emmanuele Bassi
parent da1d9cee4a
commit 928db3a71b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-10-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkfilechooserdefault.c (list_mtime_data_func): Fix the
time_t typecasting on OpenSolaris. (#465380, Takao Fujiwara)
2007-10-09 Matthias Clasen <mclasen@redhat.com>
* configure.in: Make the previous change work

View File

@ -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)