1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-06-30 22:54:23 +00:00

libdocument: Remove trailing whitespaces

This commit is contained in:
Pablo Correa Gómez 2023-03-10 00:53:55 +01:00 committed by Germán Poo-Caamaño
parent 48f4198625
commit 80d7ac219d
39 changed files with 143 additions and 146 deletions

View File

@ -56,11 +56,11 @@ GQuark
ev_attachment_error_quark (void)
{
static GQuark error_quark = 0;
if (error_quark == 0)
error_quark =
g_quark_from_static_string ("ev-attachment-error-quark");
return error_quark;
}
@ -175,7 +175,7 @@ ev_attachment_class_init (EvAttachmentClass *klass)
g_object_class_install_property (g_object_class,
PROP_MTIME,
g_param_spec_ulong ("mtime",
"ModifiedTime",
"ModifiedTime",
"The attachment modification date",
0, G_MAXULONG, 0,
G_PARAM_WRITABLE |
@ -207,7 +207,7 @@ ev_attachment_class_init (EvAttachmentClass *klass)
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
g_object_class->finalize = ev_attachment_finalize;
}
@ -322,28 +322,7 @@ ev_attachment_save (EvAttachment *attachment,
output_stream = g_file_replace (file, NULL, FALSE, 0, NULL, &ioerror);
if (output_stream == NULL) {
char *uri;
uri = g_file_get_uri (file);
g_set_error (error,
EV_ATTACHMENT_ERROR,
ioerror->code,
_("Couldnt save attachment “%s”: %s"),
uri,
ioerror->message);
g_error_free (ioerror);
g_free (uri);
return FALSE;
}
written_bytes = g_output_stream_write (G_OUTPUT_STREAM (output_stream),
priv->data,
priv->size,
NULL, &ioerror);
if (written_bytes == -1) {
char *uri;
uri = g_file_get_uri (file);
g_set_error (error,
EV_ATTACHMENT_ERROR,
@ -351,7 +330,28 @@ ev_attachment_save (EvAttachment *attachment,
_("Couldnt save attachment “%s”: %s"),
uri,
ioerror->message);
g_error_free (ioerror);
g_free (uri);
return FALSE;
}
written_bytes = g_output_stream_write (G_OUTPUT_STREAM (output_stream),
priv->data,
priv->size,
NULL, &ioerror);
if (written_bytes == -1) {
char *uri;
uri = g_file_get_uri (file);
g_set_error (error,
EV_ATTACHMENT_ERROR,
ioerror->code,
_("Couldnt save attachment “%s”: %s"),
uri,
ioerror->message);
g_output_stream_close (G_OUTPUT_STREAM (output_stream), NULL, NULL);
g_error_free (ioerror);
g_free (uri);
@ -362,7 +362,7 @@ ev_attachment_save (EvAttachment *attachment,
g_output_stream_close (G_OUTPUT_STREAM (output_stream), NULL, NULL);
return TRUE;
}
static gboolean
@ -401,7 +401,7 @@ ev_attachment_launch_app (EvAttachment *attachment,
g_list_free (files);
g_error_free (ioerror);
return FALSE;
}
@ -436,7 +436,7 @@ ev_attachment_open (EvAttachment *attachment,
0,
_("Couldnt open attachment “%s”"),
priv->name);
return FALSE;
}

View File

@ -4,7 +4,7 @@
*
* Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
* Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
* Copyright (C) 2002 - 2005 Paolo Maggi
* Copyright (C) 2002 - 2005 Paolo Maggi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -21,10 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/*
* Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
* list of people on the gedit Team.
* Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
* list of people on the gedit Team.
* See the ChangeLog files for a list of changes.
*
* $Id: gedit-debug.c 4809 2006-04-08 14:46:31Z pborelli $
@ -118,13 +118,13 @@ ev_debug_message (EvDebugSection section,
if (format) {
va_list args;
va_start (args, format);
msg = g_strdup_vprintf (format, args);
va_end (args);
}
g_print ("%s:%d (%s) %s\n", file, line, function, msg ? msg : "");
g_print ("%s:%d (%s) %s\n", file, line, function, msg ? msg : "");
fflush (stdout);
@ -174,11 +174,11 @@ ev_profiler_stop (EvProfileSection section,
va_start (args, format);
name = g_strdup_vprintf (format, args);
va_end (args);
timer = g_hash_table_lookup (timers, name);
if (!timer)
return;
g_timer_stop (timer);
seconds = g_timer_elapsed (timer, NULL);
g_print ("[ %s ] %f s elapsed\n", name, seconds);

View File

@ -4,7 +4,7 @@
*
* Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence
* Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi
* Copyright (C) 2002 - 2005 Paolo Maggi
* Copyright (C) 2002 - 2005 Paolo Maggi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -21,10 +21,10 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/*
* Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
* list of people on the gedit Team.
* Modified by the gedit Team, 1998-2005. See the AUTHORS file for a
* list of people on the gedit Team.
* See the ChangeLog files for a list of changes.
*
* $Id: gedit-debug.h 4809 2006-04-08 14:46:31Z pborelli $

View File

@ -181,7 +181,7 @@ get_compression_from_mime_type (const gchar *mime_type)
* fast or slow MIME type detection. If a document could be created,
* @compression is filled in with the document's compression type.
* On error, %NULL is returned and @error filled in.
*
*
* Returns: a new #EvDocument instance, or %NULL on error with @error filled in
*/
static EvDocument *
@ -206,7 +206,7 @@ new_document_for_uri (const char *uri,
*compression = get_compression_from_mime_type (mime_type);
g_free (mime_type);
return document;
}
@ -625,9 +625,9 @@ file_filter_add_mime_types (EvBackendInfo *info, GtkFileFilter *filter)
* @document: a #EvDocument, or %NULL
*
* Adds some file filters to @chooser.
* Always add a "All documents" format.
*
*
* If @document is not %NULL, adds a #GtkFileFilter for @document's MIME type.
*
* If @document is %NULL, adds a #GtkFileFilter for each document type that evince

View File

@ -45,7 +45,7 @@ ev_document_find_find_text (EvDocumentFind *document_find,
gboolean case_sensitive)
{
EvDocumentFindInterface *iface = EV_DOCUMENT_FIND_GET_IFACE (document_find);
return iface->find_text (document_find, page, text, case_sensitive);
}

View File

@ -1,6 +1,6 @@
/* ev-document-fonts.h
* this file is part of evince, a gnome document_fonts viewer
*
*
* Copyright (C) 2004 Red Hat, Inc.
*
* Author:

View File

@ -1,6 +1,6 @@
/* ev-document-fonts.h
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2004 Red Hat, Inc.
*
* Author:

View File

@ -1,6 +1,6 @@
/* ev-document-forms.c
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it
@ -56,7 +56,7 @@ ev_document_forms_reset_form (EvDocumentForms *document_forms,
}
gchar *
ev_document_forms_form_field_text_get_text (EvDocumentForms *document_forms,
ev_document_forms_form_field_text_get_text (EvDocumentForms *document_forms,
EvFormField *field)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -65,8 +65,8 @@ ev_document_forms_form_field_text_get_text (EvDocumentForms *document_forms,
}
void
ev_document_forms_form_field_text_set_text (EvDocumentForms *document_forms,
EvFormField *field,
ev_document_forms_form_field_text_set_text (EvDocumentForms *document_forms,
EvFormField *field,
const gchar *text)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -84,8 +84,8 @@ ev_document_forms_form_field_button_get_state (EvDocumentForms *document_forms
}
void
ev_document_forms_form_field_button_set_state (EvDocumentForms *document_forms,
EvFormField *field,
ev_document_forms_form_field_button_set_state (EvDocumentForms *document_forms,
EvFormField *field,
gboolean state)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -94,8 +94,8 @@ ev_document_forms_form_field_button_set_state (EvDocumentForms *document_forms
}
gchar *
ev_document_forms_form_field_choice_get_item (EvDocumentForms *document_forms,
EvFormField *field,
ev_document_forms_form_field_choice_get_item (EvDocumentForms *document_forms,
EvFormField *field,
gint index)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -104,7 +104,7 @@ ev_document_forms_form_field_choice_get_item (EvDocumentForms *document_forms,
}
gint
ev_document_forms_form_field_choice_get_n_items (EvDocumentForms *document_forms,
ev_document_forms_form_field_choice_get_n_items (EvDocumentForms *document_forms,
EvFormField *field)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -113,8 +113,8 @@ ev_document_forms_form_field_choice_get_n_items (EvDocumentForms *document_for
}
gboolean
ev_document_forms_form_field_choice_is_item_selected (EvDocumentForms *document_forms,
EvFormField *field,
ev_document_forms_form_field_choice_is_item_selected (EvDocumentForms *document_forms,
EvFormField *field,
gint index)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -123,8 +123,8 @@ ev_document_forms_form_field_choice_is_item_selected (EvDocumentForms *documen
}
void
ev_document_forms_form_field_choice_select_item (EvDocumentForms *document_forms,
EvFormField *field,
ev_document_forms_form_field_choice_select_item (EvDocumentForms *document_forms,
EvFormField *field,
gint index)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -133,8 +133,8 @@ ev_document_forms_form_field_choice_select_item (EvDocumentForms *document_for
}
void
ev_document_forms_form_field_choice_toggle_item (EvDocumentForms *document_forms,
EvFormField *field,
ev_document_forms_form_field_choice_toggle_item (EvDocumentForms *document_forms,
EvFormField *field,
gint index)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);
@ -143,7 +143,7 @@ ev_document_forms_form_field_choice_toggle_item (EvDocumentForms *document_for
}
void
ev_document_forms_form_field_choice_unselect_all (EvDocumentForms *document_forms,
ev_document_forms_form_field_choice_unselect_all (EvDocumentForms *document_forms,
EvFormField *field)
{
EvDocumentFormsInterface *iface = EV_DOCUMENT_FORMS_GET_IFACE (document_forms);

View File

@ -1,6 +1,6 @@
/* ev-document-forms.h
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it

View File

@ -1,6 +1,6 @@
/* ev-document-images.c
* this file is part of evince, a gnome document_links viewer
*
*
* Copyright (C) 2006 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it

View File

@ -1,6 +1,6 @@
/* ev-document-images.h
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2006 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it

View File

@ -1,6 +1,6 @@
/* ev-document-layers.c
* this file is part of evince, a gnome document_links viewer
*
*
* Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it

View File

@ -1,6 +1,6 @@
/* ev-document-layers.h
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2008 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it

View File

@ -1,6 +1,6 @@
/* ev-document-links.h
* this file is part of evince, a gnome document_links viewer
*
*
* Copyright (C) 2004 Red Hat, Inc.
*
* Author:

View File

@ -1,6 +1,6 @@
/* ev-document-links.h
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2004 Red Hat, Inc.
*
* Author:

View File

@ -394,7 +394,7 @@ ev_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf)
gdk_cairo_set_source_pixbuf (cr, pixbuf, 0, 0);
cairo_paint (cr);
cairo_destroy (cr);
return surface;
}
@ -407,7 +407,7 @@ ev_document_misc_surface_from_pixbuf (GdkPixbuf *pixbuf)
GdkPixbuf *
ev_document_misc_pixbuf_from_surface (cairo_surface_t *surface)
{
g_return_val_if_fail (surface, NULL);
g_return_val_if_fail (surface, NULL);
return gdk_pixbuf_get_from_surface (surface,
0, 0,
@ -429,7 +429,7 @@ ev_document_misc_surface_rotate_and_scale (cairo_surface_t *surface,
width = cairo_image_surface_get_width (surface);
height = cairo_image_surface_get_height (surface);
if (dest_width == width &&
dest_height == height &&
dest_rotation == 0) {
@ -460,14 +460,14 @@ ev_document_misc_surface_rotate_and_scale (cairo_surface_t *surface,
cairo_translate (cr, 0, 0);
}
cairo_rotate (cr, dest_rotation * G_PI / 180.0);
if (dest_width != width || dest_height != height) {
cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_BILINEAR);
cairo_scale (cr,
(gdouble)dest_width / width,
(gdouble)dest_height / height);
}
cairo_set_source_surface (cr, surface, 0, 0);
cairo_paint (cr);
cairo_destroy (cr);

View File

@ -1,6 +1,6 @@
/* ev-document-links.h
* this file is part of evince, a gnome document_links viewer
*
*
* Copyright (C) 2004 Red Hat, Inc.
*
* Author:

View File

@ -1,6 +1,6 @@
/* ev-document-security.h
* this file is part of evince, a gnome pdf viewer
*
*
* Copyright (C) 2005 Red Hat, Inc.
*
* Author:

View File

@ -1,6 +1,6 @@
/* ev-document-transition.c
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2006 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it

View File

@ -1,6 +1,6 @@
/* ev-document-transition.h
* this file is part of evince, a gnome document viewer
*
*
* Copyright (C) 2006 Carlos Garcia Campos <carlosgc@gnome.org>
*
* Evince is free software; you can redistribute it and/or modify it

View File

@ -16,7 +16,7 @@ GType
@enum_name@_get_type (void)
{
static gsize g_define_type_id = 0;
if (g_once_init_enter (&g_define_type_id)) {
static const G@Type@Value values[] = {
/*** END value-header ***/
@ -30,10 +30,10 @@ GType
};
GType type_id = \
g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
g_once_init_leave (&g_define_type_id, type_id);
}
return g_define_type_id;
}

View File

@ -392,7 +392,7 @@ ev_document_initialize_synctex (EvDocument *document,
* @error: a #GError location to store an error, or %NULL
*
* Loads @document from @uri.
*
*
* On failure, %FALSE is returned and @error is filled in.
* If the document is encrypted, EV_DEFINE_ERROR_ENCRYPTED is returned.
* If the backend cannot load the specific document, EV_DOCUMENT_ERROR_INVALID
@ -743,7 +743,7 @@ ev_document_synctex_backward_search (EvDocument *document,
const gchar *filename;
filename = synctex_scanner_get_name (scanner, synctex_node_tag (node));
if (filename) {
result = ev_source_link_new (filename,
synctex_node_line (node),

View File

@ -62,7 +62,7 @@ void
ev_file_exporter_end_page (EvFileExporter *exporter)
{
EvFileExporterInterface *iface = EV_FILE_EXPORTER_GET_IFACE (exporter);
if (iface->end_page)
iface->end_page (exporter);
}

View File

@ -117,8 +117,8 @@ _ev_file_helpers_init (void)
void
_ev_file_helpers_shutdown (void)
{
if (tmp_dir != NULL)
{
if (tmp_dir != NULL)
g_rmdir (tmp_dir);
g_free (tmp_dir);
@ -265,11 +265,11 @@ ev_tmp_file_unlink (GFile *file)
if (!file)
return;
res = g_file_delete (file, NULL, &error);
if (!res) {
char *uri;
uri = g_file_get_uri (file);
g_warning ("Unable to delete temp file %s: %s\n", uri, error->message);
g_free (uri);
@ -281,17 +281,17 @@ void
ev_tmp_uri_unlink (const gchar *uri)
{
GFile *file;
if (!uri)
return;
file = g_file_new_for_uri (uri);
if (!g_file_is_native (file)) {
g_warning ("Attempting to delete non native uri: %s\n", uri);
g_object_unref (file);
return;
}
ev_tmp_file_unlink (file);
g_object_unref (file);
}
@ -333,7 +333,7 @@ ev_xfer_uri_simple (const char *from,
GFile *source_file;
GFile *target_file;
gboolean result;
if (!from)
return TRUE;
@ -341,7 +341,7 @@ ev_xfer_uri_simple (const char *from,
source_file = g_file_new_for_uri (from);
target_file = g_file_new_for_uri (to);
result = g_file_copy (source_file, target_file,
G_FILE_COPY_TARGET_DEFAULT_PERMS |
G_FILE_COPY_OVERWRITE,
@ -349,7 +349,7 @@ ev_xfer_uri_simple (const char *from,
g_object_unref (target_file);
g_object_unref (source_file);
return result;
}
@ -434,7 +434,7 @@ get_mime_type_from_data (const gchar *uri, GError **error)
gchar *mime_type = NULL;
file = g_file_new_for_uri (uri);
input_stream = g_file_read (file, NULL, error);
if (!input_stream) {
g_object_unref (file);
@ -610,7 +610,7 @@ compression_child_setup_cb (gpointer fd_ptr)
static gchar *
compression_run (const gchar *uri,
EvCompressionType type,
gboolean compress,
gboolean compress,
GError **error)
{
gchar *argv[N_ARGS];
@ -738,7 +738,7 @@ ev_file_uncompress (const gchar *uri,
* @error: a #GError location to store an error, or %NULL
*
* Compresses the file at @uri.
* If @type is %EV_COMPRESSION_NONE, it does nothing and returns %NULL.
*
* Otherwise, it returns the filename of a

View File

@ -214,7 +214,7 @@ ev_form_field_text_new (gint id,
EvFormFieldTextType type)
{
EvFormField *field;
g_return_val_if_fail (id >= 0, NULL);
g_return_val_if_fail (type >= EV_FORM_FIELD_TEXT_NORMAL &&
type <= EV_FORM_FIELD_TEXT_FILE_SELECT, NULL);
@ -252,7 +252,7 @@ ev_form_field_choice_new (gint id,
g_return_val_if_fail (id >= 0, NULL);
g_return_val_if_fail (type >= EV_FORM_FIELD_CHOICE_COMBO &&
type <= EV_FORM_FIELD_CHOICE_LIST, NULL);
field = EV_FORM_FIELD (g_object_new (EV_TYPE_FORM_FIELD_CHOICE, NULL));
field->id = id;
EV_FORM_FIELD_CHOICE (field)->type = type;
@ -272,4 +272,3 @@ ev_form_field_signature_new (gint id)
return field;
}

View File

@ -37,7 +37,7 @@ G_BEGIN_DECLS
#define EV_FORM_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), EV_TYPE_FORM_FIELD, EvFormFieldClass))
#define EV_IS_FORM_FIELD(object) (G_TYPE_CHECK_INSTANCE_TYPE((object), EV_TYPE_FORM_FIELD))
#define EV_IS_FORM_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), EV_TYPE_FORM_FIELD))
#define EV_FORM_FIELD_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD, EvFormFieldClass))
#define EV_FORM_FIELD_GET_CLASS(object) (G_TYPE_INSTANCE_GET_CLASS((object), EV_TYPE_FORM_FIELD, EvFormFieldClass))
#define EV_TYPE_FORM_FIELD_TEXT (ev_form_field_text_get_type())
#define EV_FORM_FIELD_TEXT(object) (G_TYPE_CHECK_INSTANCE_CAST((object), EV_TYPE_FORM_FIELD_TEXT, EvFormFieldText))
@ -119,13 +119,13 @@ struct _EvFormFieldClass
{
GObjectClass parent_class;
};
struct _EvFormFieldText
{
EvFormField parent;
EvFormFieldTextType type;
gboolean do_spell_check : 1;
gboolean do_scroll : 1;
gboolean comb : 1;
@ -144,7 +144,7 @@ struct _EvFormFieldTextClass
struct _EvFormFieldButton
{
EvFormField parent;
EvFormFieldButtonType type;
gboolean state;
@ -160,7 +160,7 @@ struct _EvFormFieldChoice
EvFormField parent;
EvFormFieldChoiceType type;
gboolean multi_select : 1;
gboolean is_editable : 1;
gboolean do_spell_check : 1;
@ -178,7 +178,7 @@ struct _EvFormFieldChoiceClass
struct _EvFormFieldSignature
{
EvFormField parent;
/* TODO */
};

View File

@ -138,7 +138,7 @@ ev_image_save_tmp (EvImage *image,
GError *error = NULL;
gchar *filename = NULL;
int fd;
g_return_val_if_fail (EV_IS_IMAGE (image), NULL);
g_return_val_if_fail (GDK_IS_PIXBUF (pixbuf), NULL);
@ -159,7 +159,7 @@ ev_image_save_tmp (EvImage *image,
goto had_error;
g_free (filename);
return image->priv->tmp_uri;
}

View File

@ -43,7 +43,7 @@ typedef struct _EvImagePrivate EvImagePrivate;
struct _EvImage {
GObject base_instance;
EvImagePrivate *priv;
};

View File

@ -42,7 +42,7 @@ typedef struct _EvLayerPrivate EvLayerPrivate;
struct _EvLayer {
GObject base_instance;
EvLayerPrivate *priv;
};

View File

@ -45,7 +45,7 @@ typedef enum {
struct _EvLinkDest {
GObject base_instance;
EvLinkDestPrivate *priv;
};
@ -92,7 +92,7 @@ ev_link_dest_get_top (EvLinkDest *self,
if (change_top)
*change_top = (self->priv->change & EV_DEST_CHANGE_TOP);
return self->priv->top;
}
@ -421,7 +421,7 @@ ev_link_dest_new_xyz (gint page,
change |= EV_DEST_CHANGE_TOP;
if (change_zoom)
change |= EV_DEST_CHANGE_ZOOM;
return EV_LINK_DEST (g_object_new (EV_TYPE_LINK_DEST,
"page", page,
"type", EV_LINK_DEST_TYPE_XYZ,
@ -450,7 +450,7 @@ ev_link_dest_new_fith (gint page,
if (change_top)
change |= EV_DEST_CHANGE_TOP;
return EV_LINK_DEST (g_object_new (EV_TYPE_LINK_DEST,
"page", page,
"type", EV_LINK_DEST_TYPE_FITH,
@ -485,7 +485,7 @@ ev_link_dest_new_fitr (gint page,
gdouble top)
{
EvDestChange change = EV_DEST_CHANGE_TOP | EV_DEST_CHANGE_LEFT;
return EV_LINK_DEST (g_object_new (EV_TYPE_LINK_DEST,
"page", page,
"type", EV_LINK_DEST_TYPE_FITR,

View File

@ -51,7 +51,7 @@ typedef enum {
EV_LINK_DEST_TYPE_NAMED,
EV_LINK_DEST_TYPE_PAGE_LABEL,
EV_LINK_DEST_TYPE_UNKNOWN
} EvLinkDestType;
} EvLinkDestType;
EV_PUBLIC
GType ev_link_dest_get_type (void) G_GNUC_CONST;

View File

@ -47,7 +47,7 @@ const gchar *
ev_link_get_title (EvLink *self)
{
g_return_val_if_fail (EV_IS_LINK (self), NULL);
return self->priv->title;
}
@ -61,7 +61,7 @@ EvLinkAction *
ev_link_get_action (EvLink *self)
{
g_return_val_if_fail (EV_IS_LINK (self), NULL);
return self->priv->action;
}
@ -97,10 +97,10 @@ ev_link_set_property (GObject *object,
GParamSpec *param_spec)
{
EvLink *self = EV_LINK (object);
switch (prop_id) {
case PROP_TITLE:
self->priv->title = g_value_dup_string (value);
self->priv->title = g_value_dup_string (value);
break;
case PROP_ACTION:
self->priv->action = g_value_dup_object (value);
@ -180,5 +180,3 @@ ev_link_new (const char *title,
"action", action,
NULL));
}

View File

@ -142,7 +142,7 @@ ev_mapping_list_get (EvMappingList *mapping_list,
EvMapping *found = NULL;
g_return_val_if_fail (mapping_list != NULL, NULL);
for (list = mapping_list->list; list; list = list->next) {
EvMapping *mapping = list->data;

View File

@ -2,7 +2,7 @@
* ev-module.c
* This file is part of Evince
*
* Copyright (C) 2005 - Paolo Maggi
* Copyright (C) 2005 - Paolo Maggi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -16,10 +16,10 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/* This is a modified version of ephy-module.c from Epiphany source code.
* Here the original copyright assignment:
*
@ -29,9 +29,9 @@
*/
/*
* Modified by the gedit Team, 2005. See the AUTHORS file for a
* list of people on the gedit Team.
* See the ChangeLog files for a list of changes.
* Modified by the gedit Team, 2005. See the AUTHORS file for a
* list of people on the gedit Team.
* See the ChangeLog files for a list of changes.
*
* $Id: gedit-module.c 5367 2006-12-17 14:29:49Z pborelli $
*/
@ -104,7 +104,7 @@ ev_module_load (GTypeModule *gmodule)
if (module->type == 0) {
g_warning ("Invalid evince backend contained by module %s", module->path);
return FALSE;
}
@ -135,7 +135,7 @@ GObject *
_ev_module_new_object (EvModule *module)
{
g_return_val_if_fail (EV_IS_MODULE (module), NULL);
if (module->type == 0)
return NULL;

View File

@ -2,7 +2,7 @@
* ev-module.h
* This file is part of Evince
*
* Copyright (C) 2005 - Paolo Maggi
* Copyright (C) 2005 - Paolo Maggi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -16,10 +16,10 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/* This is a modified version of gedit-module.h from Epiphany source code.
* Here the original copyright assignment:
*
@ -29,15 +29,15 @@
*/
/*
* Modified by the gedit Team, 2005. See the AUTHORS file for a
* list of people on the gedit Team.
* See the ChangeLog files for a list of changes.
* Modified by the gedit Team, 2005. See the AUTHORS file for a
* list of people on the gedit Team.
* See the ChangeLog files for a list of changes.
*
* $Id: gedit-module.h 5263 2006-10-08 14:26:02Z pborelli $
*/
/* Modified by Evince Team */
#pragma once
#if !defined (EVINCE_COMPILATION)

View File

@ -32,7 +32,7 @@ static void
ev_page_finalize (GObject *object)
{
EvPage *page = EV_PAGE (object);
if (page->backend_destroy_func) {
page->backend_destroy_func (page->backend_page);
page->backend_destroy_func = NULL;

View File

@ -45,7 +45,7 @@ typedef GDestroyNotify EvBackendPageDestroyFunc;
struct _EvPage {
GObject base_instance;
gint index;
EvBackendPage backend_page;

View File

@ -46,7 +46,7 @@ struct _EvRenderContextClass
struct _EvRenderContext
{
GObject parent;
EvPage *page;
gint rotation;
gdouble scale;

View File

@ -43,7 +43,7 @@ ev_selection_render_selection (EvSelection *selection,
if (!iface->render_selection)
return;
iface->render_selection (selection, rc,
surface,
points, old_points,
@ -72,6 +72,6 @@ ev_selection_get_selection_region (EvSelection *selection,
if (!iface->get_selection_region)
return NULL;
return iface->get_selection_region (selection, rc, style, points);
}