summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-12-01 01:05:28 -0500
committerlukefromdc <[email protected]>2018-12-02 06:49:35 +0000
commit116ba41319d9e17b1b83b559fb1b5c88afe32d46 (patch)
tree0bcca70e893700a93ce4993e4bf259f95b1f746d /src
parent884870c662f042e8bab6b2985eb5fe63db706a33 (diff)
downloadcaja-116ba41319d9e17b1b83b559fb1b5c88afe32d46.tar.bz2
caja-116ba41319d9e17b1b83b559fb1b5c88afe32d46.tar.xz
caja-places-sidebar: replace two other uses of g_drive_poll_for_media_finish
Both of these uses are incorrect and if this code is ever run would likely segfault. Adapted from https://github.com/linuxmint/nemo/commit/4ffea61b26033da1305ab8287058044065a1c101
Diffstat (limited to 'src')
-rw-r--r--src/caja-places-sidebar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/caja-places-sidebar.c b/src/caja-places-sidebar.c
index f41bd04c..868ff725 100644
--- a/src/caja-places-sidebar.c
+++ b/src/caja-places-sidebar.c
@@ -1899,7 +1899,7 @@ drive_start_from_bookmark_cb (GObject *source_object,
char *name;
error = NULL;
- if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
+ if (!g_drive_start_finish (G_DRIVE (source_object), res, &error))
{
if (error->code != G_IO_ERROR_FAILED_HANDLED)
{
@@ -2488,7 +2488,7 @@ drive_start_cb (GObject *source_object,
char *name;
error = NULL;
- if (!g_drive_poll_for_media_finish (G_DRIVE (source_object), res, &error))
+ if (!g_drive_start_finish (G_DRIVE (source_object), res, &error))
{
if (error->code != G_IO_ERROR_FAILED_HANDLED)
{