diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-04-29 02:24:59 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-04-29 02:24:59 +0800 |
commit | 5231f60a4be00c9aee323ca0442856d3017b3969 (patch) | |
tree | da0431483261d63f43257cf7262c0b9ecf2d8bb9 /sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c | |
parent | 4a89854bae630e38d30d2e47f5cdea5f896e894c (diff) | |
download | marcuscom-ports-5231f60a4be00c9aee323ca0442856d3017b3969.tar marcuscom-ports-5231f60a4be00c9aee323ca0442856d3017b3969.tar.gz marcuscom-ports-5231f60a4be00c9aee323ca0442856d3017b3969.tar.bz2 marcuscom-ports-5231f60a4be00c9aee323ca0442856d3017b3969.tar.lz marcuscom-ports-5231f60a4be00c9aee323ca0442856d3017b3969.tar.xz marcuscom-ports-5231f60a4be00c9aee323ca0442856d3017b3969.tar.zst marcuscom-ports-5231f60a4be00c9aee323ca0442856d3017b3969.zip |
share/gnome -> share
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8670 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c')
-rw-r--r-- | sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c b/sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c new file mode 100644 index 000000000..cb0cd120e --- /dev/null +++ b/sysutils/nautilus-cd-burner/files/patch-src_nautilus-burn-drive.c @@ -0,0 +1,57 @@ +--- src/nautilus-burn-drive.c.orig Fri Sep 29 12:55:36 2006 ++++ src/nautilus-burn-drive.c Sun Nov 19 13:27:31 2006 +@@ -266,6 +266,25 @@ nautilus_burn_drive_get_device (Nautilus + } + + /** ++ * nautilus_burn_drive_get_cdrecord_device: ++ * @drive: #NautilusBurnDrive ++ * ++ * Get the name of the device associated with the drive suitable for ++ * user with cdrcord. ++ * ++ * Returns: device name. Must be not be freed. ++ * ++ * Since: 2.16 ++ **/ ++const char * ++nautilus_burn_drive_get_cdrecord_device (NautilusBurnDrive *drive) ++{ ++ g_return_val_if_fail (drive != NULL, NULL); ++ ++ return drive->priv->cdrecord_device; ++} ++ ++/** + * nautilus_burn_drive_get_drive_type: + * @drive: #NautilusBurnDrive + * +@@ -808,8 +827,12 @@ nautilus_burn_drive_eject (NautilusBurnD + #ifdef USE_GNOME_MOUNT + cmd = g_strdup_printf ("gnome-mount --eject --no-ui --device=%s", drive->priv->device); + #else ++#ifdef __FreeBSD_ ++ cmd = g_strdup_printf ("cdcontrol -f %s eject", drive->priv->device); ++#else + cmd = g_strdup_printf ("eject %s", drive->priv->device); + #endif ++#endif + + res = g_spawn_command_line_sync (cmd, NULL, NULL, NULL, NULL); + g_free (cmd); +@@ -1021,6 +1044,7 @@ nautilus_burn_drive_finalize (GObject *o + g_free (drive->priv->write_speeds); + g_free (drive->priv->display_name); + g_free (drive->priv->device); ++ g_free (drive->priv->cdrecord_device); + + if (G_OBJECT_CLASS (nautilus_burn_drive_parent_class)->finalize != NULL) { + (* G_OBJECT_CLASS (nautilus_burn_drive_parent_class)->finalize) (object); +@@ -1038,6 +1062,7 @@ nautilus_burn_drive_init (NautilusBurnDr + drive->priv->max_speed_read = 0; + drive->priv->write_speeds = NULL; + drive->priv->device = NULL; ++ drive->priv->cdrecord_device = NULL; + } + + /** |