Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dev:xfdesktop:port-to-gio [2010/10/17 13:01] 217.229.117.83dev:xfdesktop:port-to-gio [2010/10/17 13:10] (current) 217.229.117.83
Line 406: Line 406:
 === xfdesktop_regular_file_icon_peek_tooltip() === === xfdesktop_regular_file_icon_peek_tooltip() ===
  
-TODO+What we need is to read the last modification time, the file type and a human readable 
 +version of the size of the file. There are attributes for the modification time, the 
 +file type and the file size in ''GFileInfo''. To humanize the file time we can use 
 +something similar to [[http://git.xfce.org/xfce/thunar/tree/thunar/thunar-util.c#n140|what Thunar is doing]], 
 +for the file size we can use ''g_format_size_for_display()''.
  
 === xfdesktop_regular_file_can_write_parent() === === xfdesktop_regular_file_can_write_parent() ===
  
-TODO+Here we can simply rewrite the code to use ''GFile'' and ''GFileInfo''.
  
 === xfdesktop_delete_file_error() === === xfdesktop_delete_file_error() ===
  
-TODO+Remove.
  
 === xfdesktop_delete_file_finished() === === xfdesktop_delete_file_finished() ===
  
-TODO+Remove.
  
 === xfdesktop_regular_file_icon_delete_file() === === xfdesktop_regular_file_icon_delete_file() ===
  
-TODO+Instead of ''thunar_vfs_unlink_file()'', use the Thunar D-Bus API here. Fire 
 +and forget.
  
 === xfdesktop_regular_file_icon_rename_file() === === xfdesktop_regular_file_icon_rename_file() ===
  
-TODO+See previous function.
  
 === xfdesktop_regular_file_icon_peek_info() === === xfdesktop_regular_file_icon_peek_info() ===
  
-TODO+Change the return type to ''GFileInfo''.
  
 === xfdesktop_regular_file_icon_update_info() === === xfdesktop_regular_file_icon_update_info() ===
Line 439: Line 444:
 === xfdesktop_regular_file_icon_new() === === xfdesktop_regular_file_icon_new() ===
  
-TODO+Add a ''GFile'' parameter, update the code to use ''g_object_ref()'' instead of 
 +''thunar_vfs_info_ref()''.
  
 ==== xfdesktop_special_file_icon.{c,h} ==== ==== xfdesktop_special_file_icon.{c,h} ====