brasero r749 - in trunk: . src/plugins/checksum
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r749 - in trunk: . src/plugins/checksum
- Date: Mon, 21 Apr 2008 19:07:12 +0100 (BST)
Author: philippr
Date: Mon Apr 21 18:07:12 2008
New Revision: 749
URL: http://svn.gnome.org/viewvc/brasero?rev=749&view=rev
Log:
Display current action when creating a checksum for an image
* src/plugins/checksum/burn-checksum-image.c
(brasero_checksum_image_image_and_checksum):
Modified:
trunk/ChangeLog
trunk/src/plugins/checksum/burn-checksum-image.c
Modified: trunk/src/plugins/checksum/burn-checksum-image.c
==============================================================================
--- trunk/src/plugins/checksum/burn-checksum-image.c (original)
+++ trunk/src/plugins/checksum/burn-checksum-image.c Mon Apr 21 18:07:12 2008
@@ -75,10 +75,10 @@
static gint
brasero_checksum_image_read (BraseroChecksumImage *self,
- int fd,
- guchar *buffer,
- gint bytes,
- GError **error)
+ int fd,
+ guchar *buffer,
+ gint bytes,
+ GError **error)
{
gint total = 0;
gint read_bytes;
@@ -123,10 +123,10 @@
static BraseroBurnResult
brasero_checksum_image_write (BraseroChecksumImage *self,
- int fd,
- guchar *buffer,
- gint bytes,
- GError **error)
+ int fd,
+ guchar *buffer,
+ gint bytes,
+ GError **error)
{
gint bytes_remaining;
gint bytes_written = 0;
@@ -171,10 +171,10 @@
static BraseroBurnResult
brasero_checksum_image_checksum (BraseroChecksumImage *self,
- GChecksumType checksum_type,
- int fd_in,
- int fd_out,
- GError **error)
+ GChecksumType checksum_type,
+ int fd_in,
+ int fd_out,
+ GError **error)
{
gint read_bytes;
guchar buffer [2048];
@@ -223,8 +223,8 @@
static BraseroBurnResult
brasero_checksum_image_checksum_fd_input (BraseroChecksumImage *self,
- GChecksumType checksum_type,
- GError **error)
+ GChecksumType checksum_type,
+ GError **error)
{
int fd_in = -1;
int fd_out = -1;
@@ -246,8 +246,8 @@
static BraseroBurnResult
brasero_checksum_image_checksum_file_input (BraseroChecksumImage *self,
- GChecksumType checksum_type,
- GError **error)
+ GChecksumType checksum_type,
+ GError **error)
{
BraseroChecksumImagePrivate *priv;
BraseroBurnResult result;
@@ -306,7 +306,7 @@
static BraseroBurnResult
brasero_checksum_image_create_checksum (BraseroChecksumImage *self,
- GError **error)
+ GError **error)
{
BraseroBurnResult result;
BraseroChecksumImagePrivate *priv;
@@ -390,6 +390,12 @@
else
checksum_type = G_CHECKSUM_MD5;
+ brasero_job_set_current_action (BRASERO_JOB (self),
+ BRASERO_BURN_ACTION_CHECKSUM,
+ _("Creating image checksum"),
+ FALSE);
+ brasero_job_start_progress (BRASERO_JOB (self), FALSE);
+
if (brasero_job_get_fd_in (BRASERO_JOB (self), NULL) == BRASERO_BURN_OK)
result = brasero_checksum_image_checksum_fd_input (self, checksum_type, error);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]