GdkColormap *cmap;
GdkPixbuf *pixbuf;
int width, height;
+
+ if (gs->pstarget == NULL)
+ return;
cmap = gdk_window_get_colormap (gs->pstarget);
gdk_drawable_get_size (gs->bpixmap, &width, &height);
GdkColormap *colormap;
double width, height;
int pixmap_width, pixmap_height;
+
+ if (gs->pstarget == NULL)
+ return;
ev_document_get_page_size (EV_DOCUMENT (gs), page, &width, &height);
/* report error */
filename_dsp = g_filename_display_name (gs->gs_filename);
- msg = g_strdup_printf (_("Error while decompressing file %s:\n"), filename_dsp);
+ msg = g_strdup_printf (_("Error while decompressing file “%s”:\n"), filename_dsp);
g_free (filename_dsp);
interpreter_failed (gs, msg);
gchar *msg;
filename_dsp = g_filename_display_name (fname);
- msg = g_strdup_printf (_("Cannot open file %s.\n"), filename_dsp);
+ msg = g_strdup_printf (_("Cannot open file “%s”.\n"), filename_dsp);
g_free (filename_dsp);
interpreter_failed (gs, msg);
g_set_error(error,
G_FILE_ERROR,
G_FILE_ERROR_NOENT,
- _("Failed to load document '%s'. Ghostscript interpreter was not found in path"),
+ _("Failed to load document “%s”. Ghostscript interpreter was not found in path"),
filename);
g_free (filename_dsp);
result = FALSE;
g_set_error (error, G_FILE_ERROR,
G_FILE_ERROR_FAILED,
- _("Failed to load document '%s'"),
+ _("Failed to load document “%s”"),
filename_dsp);
g_free (filename_dsp);
}