~ubuntu-branches/debian/experimental/brasero/experimental

« back to all changes in this revision

Viewing changes to src/brasero-eject-dialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Josselin Mouette, Pedro Fragoso, Luca Bruno, Josselin Mouette, Emilio Pozuelo Monfort
  • Date: 2009-06-24 18:59:46 UTC
  • mfrom: (1.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624185946-iyxkgf3gjptir5y3
Tags: 2.26.2-1
[ Pedro Fragoso ]
* Add myself to Maintainer field
  - Thanks Ondřej Surý
* New upstream version (Closes: #528945)
  - Split package into brasero, libbrasero-media0 and libbrasero-dev
  - Add Replaces to libbrasero-media0
  - Bump libgtk to 2.14.0
  - Remove libnotify Build-dep
  - Add Build-dep libnautilus-extension-dev (>= 2.22.2)
    and install it.
  - Add Build-dep to libsm-dev
  - Add Build-dep on intltool
* Install omf files to prevent crash on Help
* Move gstreamer0.10-plugins-bad to Suggests, and add
  dvdauthor and vcdimager
* Recommends gvfs (Closes: #491827)
* Pass --disable-scrollkeeper in DEB_CONFIGURE_EXTRA_FLAGS
* debian/patches/007-fix-gnome-doc-utils-path.patch:
  - Removed, not needed anymore
* debian/patches/008-fix-volume-identifier-crash.patch:
  - Removed, merged upstream
* debian/patches/011_nautilus_menu_move.patch:
 - Move CD/DVD Creator Menu to Acessories, taken from Ubuntu

[ Luca Bruno ]
* debian/control.in:
  - Add Build-Depend gtk-doc-tools 1.9.
* debian/patches/006-fix-libdvdcss.patch:
  - Removed as applied upstream.

[ Josselin Mouette ]
* New upstream release.
* Update build-dependencies.
* Move the translations and data to a new brasero-common package.
* Rewrite the descriptions.
* Add -dev depends to the development package.
* Remove inappropriate recommends in the library package.
* Let’s not forget dvd+rw-tools so that we can write DVDs too.
* Rework dependencies accordingly.
* Put the nautilus extension in brasero.
* Conflict against nautilus-cd-burner to avoid having two burning 
  extensions.
* Include clean-la.mk and gnome-version.mk; build-depend on 
  gnome-pkg-tools 0.7.
* Don’t run dh_makeshlibs on brasero and libbrasero-plugins.
* 011_nautilus_menu_move.patch: add NoDisplay=true, this icon is 
  duplicating existing functionality (brasero icon in sound&video 
  menu, and nautilus autorun).
* Update list of copyright holders.

[ Emilio Pozuelo Monfort ]
* debian/copyright: updated.

[ Josselin Mouette ]
* copyright: improve indentation, and point to versioned LGPL.
* 090_relibtoolize.patch: add a relibtoolization patch to avoid the 
  rpath crap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 *  Copyright  2008  Luis Medinas <lmedinas@gmail.com>
6
6
 *
7
7
 *
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.
12
12
 *
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.
17
17
 *
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.
21
23
 *
22
24
 */
23
25
 
34
36
 
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"
41
44
#include "burn.h"
79
82
                return TRUE;
80
83
        }*/
81
84
 
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");
84
87
                return TRUE;
85
88
        }
98
101
        return TRUE;
99
102
}
100
103
 
101
 
static void
 
104
static gboolean
102
105
brasero_eject_dialog_cancel (BraseroToolDialog *dialog)
103
106
{
104
107
        BraseroMedium *medium;
109
112
                brasero_volume_cancel_current_operation (BRASERO_VOLUME (medium));
110
113
                g_object_unref (medium);
111
114
        }
 
115
 
 
116
        return TRUE;
112
117
}
113
118
 
114
119
static void
132
137
                                        NULL,
133
138
                                        "media-eject");
134
139
 
 
140
        /* all kinds of media */
 
141
        brasero_tool_dialog_set_medium_type_shown (BRASERO_TOOL_DIALOG (obj),
 
142
                                                   BRASERO_MEDIA_TYPE_ALL_BUT_FILE);
 
143
 
135
144
        medium = brasero_tool_dialog_get_medium (BRASERO_TOOL_DIALOG (obj));
136
145
        if (medium) {
137
146
                brasero_tool_dialog_set_valid (BRASERO_TOOL_DIALOG (obj), BRASERO_MEDIUM_VALID (brasero_medium_get_status (medium)));