brasero r799 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r799 - in trunk: . src
- Date: Wed, 7 May 2008 15:07:54 +0100 (BST)
Author: philippr
Date: Wed May 7 14:07:54 2008
New Revision: 799
URL: http://svn.gnome.org/viewvc/brasero?rev=799&view=rev
Log:
Notice disc insertion
* src/brasero-project-size.c (brasero_project_size_disc_added_cb):
Modified:
trunk/ChangeLog
trunk/src/brasero-project-size.c
Modified: trunk/src/brasero-project-size.c
==============================================================================
--- trunk/src/brasero-project-size.c (original)
+++ trunk/src/brasero-project-size.c Wed May 7 14:07:54 2008
@@ -1556,28 +1556,23 @@
BraseroMedium *medium,
BraseroProjectSize *self)
{
- GList *iter;
-
- for (iter = self->priv->drives; iter; iter = iter->next) {
- BraseroDriveSize *drive;
-
- drive = iter->data;
- if (drive->medium
- && medium == drive->medium) {
+ BraseroDriveSize *drive;
- drive->media = brasero_medium_get_status (drive->medium);
+ /* first add it to the list */
+ drive = g_new0 (BraseroDriveSize, 1);
+ drive->medium = medium;
+ self->priv->drives = g_list_prepend (self->priv->drives, drive);
+
+ drive->media = brasero_medium_get_status (medium);
+
+ /* If there is an appendable session we just ignore it, the size of this
+ * session will simply be added to the size of the project if the user
+ * decides to merge them */
+ brasero_medium_get_capacity (medium, NULL, &drive->sectors);
+ brasero_medium_get_free_space (medium, NULL, &drive->free_space);
- /* If there is an appendable session we just ignore it,
- * the size of this session will simply be added to the
- * size of the project if the user decides to merge them
- */
- brasero_medium_get_capacity (medium, NULL, &drive->sectors);
- brasero_medium_get_free_space (medium, NULL, &drive->free_space);
-
- brasero_project_size_find_proper_drive (self);
- brasero_project_size_disc_changed (self);
- }
- }
+ brasero_project_size_find_proper_drive (self);
+ brasero_project_size_disc_changed (self);
/* we need to rebuild the menu is any */
if (self->priv->menu)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]