summaryrefslogtreecommitdiff
path: root/src/book.c
diff options
context:
space:
mode:
authorAlessio Treglia <quadrispro@ubuntu.com>2010-05-13 20:16:51 +0200
committerAlessio Treglia <quadrispro@ubuntu.com>2010-05-13 20:16:51 +0200
commit7f9ebd076a83aaf63891d63bcb29b4f358f1df2f (patch)
treed0e1f85948001b77ff07412accf00c155cbbc6a2 /src/book.c
parentd116d13b3417eac7943735d2499aab265cc4d9a3 (diff)
parent37e8ad6c00349fd62f09c8cfe3e22acf545db2ac (diff)
Merge commit 'upstream/2.31.1'
Diffstat (limited to 'src/book.c')
-rw-r--r--src/book.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/book.c b/src/book.c
index 0dce5f0..1c1cc6e 100644
--- a/src/book.c
+++ b/src/book.c
@@ -304,6 +304,7 @@ book_save_pdf_with_imagemagick (Book *book, GFile *file, GError **error)
path = g_file_get_path (tiff_file);
resolution_command = g_strdup_printf ("convert %s -density %d %s", path, page_get_dpi (page), path);
+ g_debug ("Executing ImageMagick command: %s", resolution_command);
result = g_spawn_command_line_sync (resolution_command, &stdout_text, &stderr_text, &exit_status, error);
if (result && exit_status != 0) {
g_warning ("ImageMagick returned error code %d, command line was: %s", exit_status, resolution_command);
@@ -334,6 +335,7 @@ book_save_pdf_with_imagemagick (Book *book, GFile *file, GError **error)
g_string_append_printf (command_line, " %s", path);
g_free (path);
+ g_debug ("Executing ImageMagick command: %s", command_line->str);
result = g_spawn_command_line_sync (command_line->str, &stdout_text, &stderr_text, &exit_status, error);
if (result && exit_status != 0) {
g_warning ("ImageMagick returned error code %d, command line was: %s", exit_status, command_line->str);
@@ -459,16 +461,16 @@ book_class_init (BookClass *klass)
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (BookClass, page_added),
NULL, NULL,
- g_cclosure_marshal_VOID__POINTER,
- G_TYPE_NONE, 1, G_TYPE_POINTER);
+ g_cclosure_marshal_VOID__OBJECT,
+ G_TYPE_NONE, 1, page_get_type ());
signals[PAGE_REMOVED] =
g_signal_new ("page-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (BookClass, page_removed),
NULL, NULL,
- g_cclosure_marshal_VOID__POINTER,
- G_TYPE_NONE, 1, G_TYPE_POINTER);
+ g_cclosure_marshal_VOID__OBJECT,
+ G_TYPE_NONE, 1, page_get_type ());
signals[CLEARED] =
g_signal_new ("cleared",
G_TYPE_FROM_CLASS (klass),