diff options
author | Alessio Treglia <quadrispro@ubuntu.com> | 2010-05-13 20:16:51 +0200 |
---|---|---|
committer | Alessio Treglia <quadrispro@ubuntu.com> | 2010-05-13 20:16:51 +0200 |
commit | 37e8ad6c00349fd62f09c8cfe3e22acf545db2ac (patch) | |
tree | 4b663edb122b77e9c8f1b48c0f1c68f69fcf5655 /src/book.c | |
parent | dc950f77d2a9f9aa23f6bd0ea59648c34fff491b (diff) |
Imported Upstream version 2.31.1upstream/2.31.1
Diffstat (limited to 'src/book.c')
-rw-r--r-- | src/book.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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), |