5
5
* Copyright 2008 Luis Medinas <lmedinas@gmail.com>
8
* This program is free software; you can redistribute it and/or modify
8
* Brasero is free software; you can redistribute it and/or modify
9
9
* it under the terms of the GNU General Public License as published by
10
10
* the Free Software Foundation; either version 2 of the License, or
11
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
13
* Brasero is distributed in the hope that it will be useful,
14
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
16
* GNU Library General Public License for more details.
18
18
* You should have received a copy of the GNU General Public License
19
* along with this program; if not, write to the Free Software
20
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
* along with this program; if not, write to:
20
* The Free Software Foundation, Inc.,
21
* 51 Franklin Street, Fifth Floor
22
* Boston, MA 02110-1301, USA.
35
37
#include "brasero-eject-dialog.h"
36
38
#include "brasero-tool-dialog.h"
37
#include "burn-medium.h"
38
#include "burn-volume-obj.h"
39
#include "brasero-medium.h"
40
#include "brasero-drive.h"
41
#include "brasero-volume.h"
39
42
#include "burn-debug.h"
40
43
#include "brasero-utils.h"
82
if (!brasero_volume_eject (BRASERO_VOLUME (medium), TRUE, &error)) {
85
if (!brasero_drive_eject (drive, TRUE, &error)) {
83
86
BRASERO_BURN_LOG ("Error ejecting medium: %s", error?error->message:"Unknown error");
140
/* all kinds of media */
141
brasero_tool_dialog_set_medium_type_shown (BRASERO_TOOL_DIALOG (obj),
142
BRASERO_MEDIA_TYPE_ALL_BUT_FILE);
135
144
medium = brasero_tool_dialog_get_medium (BRASERO_TOOL_DIALOG (obj));
137
146
brasero_tool_dialog_set_valid (BRASERO_TOOL_DIALOG (obj), BRASERO_MEDIUM_VALID (brasero_medium_get_status (medium)));