Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
dev:xfdesktop:port-to-gio-progress [2010/10/17 19:31] – created 217.229.117.83 | dev:xfdesktop:port-to-gio-progress [2010/10/21 00:08] – 217.229.125.71 | ||
---|---|---|---|
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 28: | Line 21: | ||
Make the interface method '' | Make the interface method '' | ||
+ | |||
==== xfdesktop-file-icon-manager.{c, | ==== xfdesktop-file-icon-manager.{c, | ||
- | |||
- | === xfdesktop_file_icon_menu_rename() === | ||
- | |||
- | Use Thunar' | ||
- | need the '' | ||
- | instead of '' | ||
- | |||
- | === xfdesktop_file_icon_manager_trash_files() === | ||
- | |||
- | Again, use '' | ||
- | to obtain the URIs of the files supposed to be trashed. | ||
=== xfdesktop_file_icon_menu_mime_app_executed() === | === xfdesktop_file_icon_menu_mime_app_executed() === | ||
Line 51: | Line 34: | ||
Replace this method with a similar one based on '' | Replace this method with a similar one based on '' | ||
'' | '' | ||
- | |||
- | === xfdesktop_file_icon_menu_open_folder() === | ||
- | |||
- | We don't need the '' | ||
- | instead of '' | ||
- | take a '' | ||
- | |||
- | === xfdesktop_file_icon_menu_open_desktop() === | ||
- | |||
- | See the previous function. | ||
=== xfdesktop_file_icon_menu_other_app() === | === xfdesktop_file_icon_menu_other_app() === | ||
Line 67: | Line 40: | ||
Replace '' | Replace '' | ||
and '' | and '' | ||
- | |||
- | === xfdesktop_file_icon_menu_properties() === | ||
- | |||
- | Again, we only need the '' | ||
- | properties dialog (what' | ||
- | parts of xfdesktop to be working anyway). | ||
- | |||
- | === 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() === | === xfdesktop_file_icon_menu_create_launcher() === | ||
Line 86: | Line 48: | ||
xfce4-panel/ | xfce4-panel/ | ||
this. | 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 139: | Line 94: | ||
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 213: | Line 145: | ||
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 238: | Line 162: | ||
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 '' | ||
Line 251: | Line 169: | ||
Remove 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 292: | Line 188: | ||
If this is still needed after refactoring, | If this is still needed after refactoring, | ||
and rewrite the checks based on '' | and rewrite the checks based on '' | ||
- | |||
- | === xfdesktop_file_utils_file_icon_list_to_path_list() === | ||
- | |||
- | Replace with a function called '' | ||
- | that creates a list of '' | ||
=== xfdesktop_file_utils_get_fallback_icon() === | === xfdesktop_file_utils_get_fallback_icon() === | ||
Line 315: | Line 206: | ||
hard that we can't provide any real functionality without it anyway. | hard that we can't provide any real functionality without it anyway. | ||
- | === xfdesktop_file_utils_display_folder_cb() === | ||
- | |||
- | Remove fallback code. | ||
==== xfdesktop-regular-file-icon.{c, | ==== xfdesktop-regular-file-icon.{c, | ||