diff -Nru unity-control-center-15.04.0+19.04.20190209/debian/bzr-builder.manifest unity-control-center-15.04.0+19.04.20190209/debian/bzr-builder.manifest --- unity-control-center-15.04.0+19.04.20190209/debian/bzr-builder.manifest 2019-03-13 07:15:25.000000000 +0000 +++ unity-control-center-15.04.0+19.04.20190209/debian/bzr-builder.manifest 2019-03-15 13:18:01.000000000 +0000 @@ -1,2 +1,2 @@ -# bzr-builder format 0.3 deb-version {debversion}+201903130715 -lp:~khurshid-alam/unity-control-center/info-panel-fix revid:seb128@ubuntu.com-20190301161546-c9kt45nppog5kzeu +# bzr-builder format 0.3 deb-version {debversion}+201903151317 +lp:~khurshid-alam/unity-control-center/info-panel-fix revid:khurshid.alam@linuxmail.org-20190315125144-205coyg4xpfulmfr diff -Nru unity-control-center-15.04.0+19.04.20190209/debian/changelog unity-control-center-15.04.0+19.04.20190209/debian/changelog --- unity-control-center-15.04.0+19.04.20190209/debian/changelog 2019-03-13 07:15:25.000000000 +0000 +++ unity-control-center-15.04.0+19.04.20190209/debian/changelog 2019-03-15 13:18:01.000000000 +0000 @@ -1,8 +1,8 @@ -unity-control-center (15.04.0+19.04.20190209-0ubuntu2+201903130715~ubuntu19.04.1) disco; urgency=low +unity-control-center (15.04.0+19.04.20190209-0ubuntu2+201903151317~ubuntu19.04.1) disco; urgency=low * Auto build. - -- Khurshid Alam Wed, 13 Mar 2019 07:15:25 +0000 + -- Khurshid Alam Fri, 15 Mar 2019 13:18:01 +0000 unity-control-center (15.04.0+19.04.20190209-0ubuntu2) disco; urgency=medium diff -Nru unity-control-center-15.04.0+19.04.20190209/panels/info/cc-info-panel.c unity-control-center-15.04.0+19.04.20190209/panels/info/cc-info-panel.c --- unity-control-center-15.04.0+19.04.20190209/panels/info/cc-info-panel.c 2019-03-13 07:15:24.000000000 +0000 +++ unity-control-center-15.04.0+19.04.20190209/panels/info/cc-info-panel.c 2019-03-15 13:17:57.000000000 +0000 @@ -579,14 +579,38 @@ g_object_unref (file); } +static GList * +convert_points_to_entries (GList *points) +{ + GList *entries = NULL; + GList *p; + + for (p = points; p != NULL; p = p->next) + { + GUnixMountPoint *point = p->data; + GUnixMountEntry *mount; + const gchar *mount_path = g_unix_mount_point_get_mount_path (point); + + mount = g_unix_mount_at (mount_path, NULL); + if (mount) + entries = g_list_append (entries, mount); + } + + return entries; +} + static void get_primary_disc_info (CcInfoPanel *self) { - GList *points; + GList *points, *entries = NULL; GList *p; points = g_unix_mount_points_get (NULL); - for (p = points; p != NULL; p = p->next) + + entries = convert_points_to_entries (points); + g_list_free_full (points, (GDestroyNotify) g_unix_mount_point_free); + + for (p = entries; p != NULL; p = p->next) { GUnixMountEntry *mount = p->data; const char *mount_path; @@ -604,7 +628,7 @@ self->priv->primary_mounts = g_list_prepend (self->priv->primary_mounts, mount); } - g_list_free (points); + g_list_free (entries); get_primary_disc_info_start (self); }