After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693018 - File browser: don't use GIOScheduler (deprecated)
File browser: don't use GIOScheduler (deprecated)
Status: RESOLVED FIXED
Product: gedit-plugins
Classification: Other
Component: General
3.7.x
Other Linux
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2013-02-01 16:03 UTC by Sébastien Wilmet
Modified: 2019-03-23 20:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
File browser: don't use GIOScheduler (deprecated) (5.39 KB, patch)
2013-04-14 17:30 UTC, Sébastien Wilmet
reviewed Details | Review

Description Sébastien Wilmet 2013-02-01 16:03:49 UTC
The GIOScheduler API has been deprecated, and is used in the file browser plugin for sending files to the Trash location (or, if this operation is not possible, deleting the files, after confirmation by the user).

The reason why the GIOScheduler API was used is because there was no async version of g_file_trash() and g_file_delete(). Now the async version of g_file_delete() is available, and I've sent a patch for the async version of g_file_trash(), see bug #548353.

With the async versions, the implementation will normally be simpler.
Comment 1 Sébastien Wilmet 2013-04-10 20:43:35 UTC
The async version of g_file_trash() is now available.
Comment 2 Sébastien Wilmet 2013-04-14 17:30:49 UTC
Created attachment 241511 [details] [review]
File browser: don't use GIOScheduler (deprecated)

The GIOScheduler was used because there was no async version of
g_file_delete() and g_file_trash(). Now that the async versions exist,
no need to use GIOScheduler or GTask.

gio >= 2.37.0 is required.
Comment 3 Ignacio Casal Quinteiro (nacho) 2013-04-14 18:51:15 UTC
Review of attachment 241511 [details] [review]:

Patch looks great, just push it after we branch after the next stable release.

::: plugins/filebrowser/gedit-file-browser-store.c
@@ +3672,1 @@
 	model->priv->async_handles = g_slist_prepend (model->priv->async_handles, data);

Just double check if this async_handles are still needed, or if something in the asyncdata can be removed.
Comment 4 Sébastien Wilmet 2013-04-16 18:49:55 UTC
Double checked, and pushed.