Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:xfdesktop:port-to-gio-progress [2010/10/18 15:00] – 217.229.80.161 | dev:xfdesktop:port-to-gio-progress [2010/10/23 01:26] – 217.229.81.234 | ||
---|---|---|---|
Line 6: | Line 6: | ||
Calls '' | Calls '' | ||
- | |||
- | ==== xfce-desktop.c ==== | ||
- | |||
- | === xfce_desktop_setup_icon_view() === | ||
- | |||
- | Use a '' | ||
- | Pass the '' | ||
==== xfdesktop-file-icon.{c, | ==== xfdesktop-file-icon.{c, | ||
Line 30: | Line 23: | ||
==== xfdesktop-file-icon-manager.{c, | ==== xfdesktop-file-icon-manager.{c, | ||
- | |||
- | === xfdesktop_file_icon_menu_mime_app_executed() === | ||
- | |||
- | Use '' | ||
- | instead of '' | ||
- | before and after this call (similar to how Thunar does it). | ||
- | |||
- | === xfdesktop_menu_item_from_mime_handler() === | ||
- | |||
- | Replace this method with a similar one based on '' | ||
- | '' | ||
- | |||
- | === xfdesktop_file_icon_menu_other_app() === | ||
- | |||
- | Again, we only need the '' | ||
- | Replace '' | ||
- | and '' | ||
- | |||
- | === xfdesktop_file_icon_create_directory_error() === | ||
- | |||
- | Remove this function. We'll create directories through the Thunar D-Bus API. We'll | ||
- | probably have to add another D-Bus method for creating directories. | ||
- | |||
- | === xfdesktop_file_icon_menu_create_launcher() === | ||
- | |||
- | Use a '' | ||
- | the file URI. Feed exo-desktop-item-edit with the URI instead of a local path. | ||
- | The function '' | ||
- | xfce4-panel/ | ||
- | this. | ||
- | |||
- | === xfdesktop_file_icon_menu_create_folder() === | ||
- | |||
- | Create the directory using a new Thunar D-Bus method instead of implementing | ||
- | this feature in xfdesktop internally. We'll have to create the D-Bus method | ||
- | first. It should be called '' | ||
- | type parameter). Need to think about this a bit more. | ||
=== xfdesktop_file_icon_create_file_error() === | === xfdesktop_file_icon_create_file_error() === | ||
Line 98: | Line 54: | ||
Use '' | Use '' | ||
- | Use '' | ||
- | '' | ||
=== xfdesktop_file_icon_manager_add_icon() === | === xfdesktop_file_icon_manager_add_icon() === | ||
Use '' | Use '' | ||
- | |||
- | === xfdesktop_file_icon_manager_add_regular_icon() === | ||
- | |||
- | Use '' | ||
- | '' | ||
=== xfdesktop_file_icon_manager_add_volume_icon() === | === xfdesktop_file_icon_manager_add_volume_icon() === | ||
Use '' | Use '' | ||
- | |||
- | === xfdesktop_file_icon_manager_vfs_monitor_cb() === | ||
- | |||
- | Replace this with a monitor callback for '' | ||
- | |||
- | === xfdesktop_file_icon_manager_listdir_infos_ready_cb() === | ||
- | |||
- | This function will have to be replaced with something similar because we | ||
- | cannot use the list dir job from ThunarVfsJob anymore. | ||
- | |||
- | === xfdesktop_file_icon_manager_listdir_finished_cb() === | ||
- | |||
- | This function will have to be replaced with something similar because we | ||
- | cannot use the list dir job from ThunarVfsJob anymore. | ||
- | |||
- | === xfdesktop_file_icon_manager_listdir_error_cb() === | ||
- | |||
- | This function will have to be replaced with something similar because we | ||
- | cannot use the list dir job from ThunarVfsJob anymore. | ||
- | |||
- | === xfdesktop_file_icon_manager_load_desktop_folder() === | ||
- | |||
- | Asynchronously load the folder using '' | ||
=== xfdesktop_file_icon_manager_volume_changed() === | === xfdesktop_file_icon_manager_volume_changed() === | ||
Line 174: | Line 100: | ||
=== xfdesktop_file_icon_manager_real_init() === | === xfdesktop_file_icon_manager_real_init() === | ||
- | Get rid of the '' | + | Get rid of the global '' |
- | The hash table needs to use either URIs or '' | + | |
- | and equal functions for them. URIs are easier due to the availability of string | + | |
- | hash and equal functions, I guess. | + | |
- | + | ||
- | We'll have to change the '' | + | |
- | to a '' | + | |
- | '' | + | |
- | if the '' | + | |
=== xfdesktop_file_icon_manager_fini() === | === xfdesktop_file_icon_manager_fini() === | ||
The counterpart to the previous function. Same deal. | The counterpart to the previous function. Same deal. | ||
- | |||
- | === xfdesktop_file_icon_manager_drag_drop() === | ||
- | |||
- | Use ''' | ||
- | can then be determined with '' | ||
- | |||
- | Use '' | ||
- | instead of '' | ||
=== xfdesktop_file_icon_manager_drag_data_received() === | === xfdesktop_file_icon_manager_drag_data_received() === | ||
Line 212: | Line 122: | ||
The code block dealing with jobs needs to be reworked around '' | The code block dealing with jobs needs to be reworked around '' | ||
and the Thunar D-Bus API completely. Maybe danielm' | and the Thunar D-Bus API completely. Maybe danielm' | ||
- | |||
- | === xfdesktop_file_icon_manager_new() === | ||
- | |||
- | Change the '' | ||
=== _XfdesktopFileIconManagerPrivate === | === _XfdesktopFileIconManagerPrivate === | ||
- | |||
- | Change the '' | ||
Replace the '' | Replace the '' | ||
the '' | the '' | ||
- | |||
- | Remove the '' | ||
- | |||
- | === xfdesktop_file_icon_manager_class_init() === | ||
- | |||
- | Alter the " | ||
- | using the '' | ||
- | |||
- | === xfdesktop_file_icon_manager_set_property() === | ||
- | |||
- | Change the " | ||
- | type made in the class_init function. | ||
- | |||
- | === xfdesktop_file_icon_manager_get_property() === | ||
- | |||
- | Same here, see above. | ||
- | |||
- | === xfdesktop_file_icon_manager_finalize() === | ||
- | |||
- | Use '' | ||
- | |||
- | === xfdesktop_file_icon_manager_check_create_desktop_folder() === | ||
- | |||
- | Replace the code with something similar based on '' | ||
- | '' | ||
==== xfdesktop-file-properties-dialog.{c, | ==== xfdesktop-file-properties-dialog.{c, | ||
Remove entirely. We'll re-use Thunar' | Remove entirely. We'll re-use Thunar' | ||
+ | |||
==== xfdesktop-file-utils.{c, | ==== xfdesktop-file-utils.{c, | ||
Line 289: | Line 169: | ||
Replace the '' | Replace the '' | ||
- | |||
- | === xfdesktop_regular_file_icon_peek_info() === | ||
- | |||
- | Return a '' | ||
- | |||
- | === xfdesktop_regular_file_icon_update_info() === | ||
- | |||
- | TODO: Replace the '' | ||
- | to add a '' | ||
- | |||
- | === xfdesktop_delete_regular_file_finished() === | ||
- | |||
- | Remove. | ||
- | |||
- | === xfdesktop_regular_file_icon_finalize() === | ||
- | |||
- | Call '' | ||
- | new '' | ||
- | |||
- | === xfdesktop_regular_file_icon_tfi_init() === | ||
- | |||
- | Update this to Thunarx 2. Need to set '' | ||
- | and '' | ||
=== xfdesktop_regular_file_icon_peek_pixbuf() === | === xfdesktop_regular_file_icon_peek_pixbuf() === | ||
Line 360: | Line 217: | ||
Here we can simply rewrite the code to use '' | Here we can simply rewrite the code to use '' | ||
- | |||
- | === xfdesktop_delete_file_error() === | ||
- | |||
- | Remove. | ||
- | |||
- | === xfdesktop_delete_file_finished() === | ||
- | |||
- | Remove. | ||
- | |||
- | === xfdesktop_regular_file_icon_delete_file() === | ||
- | |||
- | Instead of '' | ||
- | and forget. | ||
- | |||
- | === xfdesktop_regular_file_icon_rename_file() === | ||
- | |||
- | See previous function. | ||
=== xfdesktop_regular_file_icon_peek_info() === | === xfdesktop_regular_file_icon_peek_info() === | ||
Change the return type to '' | Change the return type to '' | ||
- | |||
- | === xfdesktop_regular_file_icon_update_info() === | ||
- | |||
- | TODO: Check how and where this function is being used and what we can do in order | ||
- | to replace the '' | ||
- | |||
- | === xfdesktop_regular_file_icon_new() === | ||
- | |||
- | Add a '' | ||
- | '' | ||
==== xfdesktop_special_file_icon.{c, | ==== xfdesktop_special_file_icon.{c, |