diff options
author | rbuj <[email protected]> | 2021-10-27 17:30:36 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-11-20 18:31:11 +0100 |
commit | 816d2dc8226f8d271aa1a6cd30549614769d5267 (patch) | |
tree | b7bf882bb656964b9a919d4467fbde54fd9be867 /libview | |
parent | 0c38b79c9556e475652d37556f0b2ffd73e0a4e4 (diff) | |
download | atril-816d2dc8226f8d271aa1a6cd30549614769d5267.tar.bz2 atril-816d2dc8226f8d271aa1a6cd30549614769d5267.tar.xz |
Use a blank line at most
Diffstat (limited to 'libview')
-rw-r--r-- | libview/ev-page-accessible.c | 2 | ||||
-rw-r--r-- | libview/ev-pixbuf-cache.c | 6 | ||||
-rw-r--r-- | libview/ev-pixbuf-cache.h | 2 | ||||
-rw-r--r-- | libview/ev-timeline.c | 2 | ||||
-rw-r--r-- | libview/ev-timeline.h | 2 | ||||
-rw-r--r-- | libview/ev-transition-animation.c | 2 | ||||
-rw-r--r-- | libview/ev-transition-animation.h | 2 | ||||
-rw-r--r-- | libview/ev-view-presentation.c | 1 | ||||
-rw-r--r-- | libview/ev-view.c | 2 | ||||
-rw-r--r-- | libview/ev-web-view.c | 2 | ||||
-rw-r--r-- | libview/ev-web-view.h | 1 |
11 files changed, 0 insertions, 24 deletions
diff --git a/libview/ev-page-accessible.c b/libview/ev-page-accessible.c index fba189c5..112f8020 100644 --- a/libview/ev-page-accessible.c +++ b/libview/ev-page-accessible.c @@ -37,7 +37,6 @@ struct _EvPageAccessiblePrivate { gboolean children_initialized; }; - enum { PROP_0, PROP_VIEW_ACCESSIBLE, @@ -412,7 +411,6 @@ treat_as_soft_return (EvView *view, EvRectangle *next_word_end; gint prev_offset, next_offset; - if (!log_attrs[offset].is_white) return FALSE; diff --git a/libview/ev-pixbuf-cache.c b/libview/ev-pixbuf-cache.c index 3c034343..163267f6 100644 --- a/libview/ev-pixbuf-cache.c +++ b/libview/ev-pixbuf-cache.c @@ -72,7 +72,6 @@ struct _EvPixbufCacheClass void (* job_finished) (EvPixbufCache *pixbuf_cache); }; - enum { JOB_FINISHED, @@ -92,7 +91,6 @@ static gboolean new_selection_surface_needed(EvPixbufCache *pixbuf_cac gint page, gfloat scale); - /* These are used for iterating through the prev and next arrays */ #define FIRST_VISIBLE_PREV(pixbuf_cache) \ (MAX (0, pixbuf_cache->preload_cache_size - pixbuf_cache->start_page)) @@ -223,7 +221,6 @@ ev_pixbuf_cache_dispose (GObject *object) G_OBJECT_CLASS (ev_pixbuf_cache_parent_class)->dispose (object); } - EvPixbufCache * ev_pixbuf_cache_new (GtkWidget *view, EvDocumentModel *model, @@ -985,7 +982,6 @@ ev_pixbuf_cache_clear (EvPixbufCache *pixbuf_cache) } } - void ev_pixbuf_cache_style_changed (EvPixbufCache *pixbuf_cache) { @@ -1265,7 +1261,6 @@ ev_pixbuf_cache_set_selection_list (EvPixbufCache *pixbuf_cache, } } - /* Returns what the pixbuf cache thinks is */ GList * @@ -1356,4 +1351,3 @@ ev_pixbuf_cache_reload_page (EvPixbufCache *pixbuf_cache, EV_JOB_PRIORITY_URGENT); } - diff --git a/libview/ev-pixbuf-cache.h b/libview/ev-pixbuf-cache.h index 5617ca9b..941e6862 100644 --- a/libview/ev-pixbuf-cache.h +++ b/libview/ev-pixbuf-cache.h @@ -39,8 +39,6 @@ G_BEGIN_DECLS #define EV_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EV_TYPE_PIXBUF_CACHE, EvPixbufCache)) #define EV_IS_PIXBUF_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EV_TYPE_PIXBUF_CACHE)) - - /* The coordinates in the rect here are at scale == 1.0, so that we can ignore * resizings. There is one per page, maximum. */ diff --git a/libview/ev-timeline.c b/libview/ev-timeline.c index ce4153dc..c794a438 100644 --- a/libview/ev-timeline.c +++ b/libview/ev-timeline.c @@ -56,10 +56,8 @@ enum { static guint signals [LAST_SIGNAL] = { 0, }; - G_DEFINE_TYPE_WITH_PRIVATE (EvTimeline, ev_timeline, G_TYPE_OBJECT) - static void ev_timeline_init (EvTimeline *timeline) { diff --git a/libview/ev-timeline.h b/libview/ev-timeline.h index d4f6ba78..4a2c86a9 100644 --- a/libview/ev-timeline.h +++ b/libview/ev-timeline.h @@ -59,7 +59,6 @@ struct EvTimelineClass { gdouble progress); }; - GType ev_timeline_get_type (void) G_GNUC_CONST; EvTimeline *ev_timeline_new (guint duration); @@ -84,7 +83,6 @@ void ev_timeline_set_duration (EvTimeline *ti gdouble ev_timeline_get_progress (EvTimeline *timeline); - G_END_DECLS #endif /* __EV_TIMELINE_H__ */ diff --git a/libview/ev-transition-animation.c b/libview/ev-transition-animation.c index f41aa85c..8589e1b4 100644 --- a/libview/ev-transition-animation.c +++ b/libview/ev-transition-animation.c @@ -41,10 +41,8 @@ enum { PROP_DEST_SURFACE }; - G_DEFINE_TYPE_WITH_PRIVATE (EvTransitionAnimation, ev_transition_animation, EV_TYPE_TIMELINE) - static void ev_transition_animation_init (EvTransitionAnimation *animation) { diff --git a/libview/ev-transition-animation.h b/libview/ev-transition-animation.h index 8691fd66..f6e374f4 100644 --- a/libview/ev-transition-animation.h +++ b/libview/ev-transition-animation.h @@ -50,7 +50,6 @@ struct EvTransitionAnimationClass { EvTimelineClass parent_class; }; - GType ev_transition_animation_get_type (void) G_GNUC_CONST; EvTransitionAnimation * ev_transition_animation_new (EvTransitionEffect *effect); @@ -67,7 +66,6 @@ void ev_transition_animation_paint (EvTransition GdkRectangle page_area); gboolean ev_transition_animation_ready (EvTransitionAnimation *animation); - G_END_DECLS #endif /* __EV_TRANSITION_ANIMATION_H__ */ diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c index c525e51f..ac723eb2 100644 --- a/libview/ev-view-presentation.c +++ b/libview/ev-view-presentation.c @@ -1385,7 +1385,6 @@ ev_view_presentation_scroll_event (GtkWidget *widget, return TRUE; } - static void add_change_page_binding_keypad (GtkBindingSet *binding_set, guint keyval, diff --git a/libview/ev-view.c b/libview/ev-view.c index 2e01035e..86c83944 100644 --- a/libview/ev-view.c +++ b/libview/ev-view.c @@ -5621,7 +5621,6 @@ ev_view_style_updated (GtkWidget *widget) /*** Drawing ***/ - static void draw_rubberband (EvView *view, cairo_t *cr, @@ -5652,7 +5651,6 @@ draw_rubberband (EvView *view, cairo_restore (cr); } - static void highlight_find_results (EvView *view, cairo_t *cr, int page) { diff --git a/libview/ev-web-view.c b/libview/ev-web-view.c index ecd7a02b..7c6c83f3 100644 --- a/libview/ev-web-view.c +++ b/libview/ev-web-view.c @@ -31,7 +31,6 @@ #include "ev-document-model.h" #include "ev-jobs.h" - typedef enum { EV_WEB_VIEW_FIND_NEXT, EV_WEB_VIEW_FIND_PREV @@ -322,7 +321,6 @@ ev_web_view_reload (EvWebView *webview) web_view_update_range_and_current_page (webview); } - gboolean ev_web_view_next_page (EvWebView *webview) { diff --git a/libview/ev-web-view.h b/libview/ev-web-view.h index 16b82ba8..02f7ef64 100644 --- a/libview/ev-web-view.h +++ b/libview/ev-web-view.h @@ -35,7 +35,6 @@ #include <glib-object.h> G_BEGIN_DECLS - typedef struct _EvWebView EvWebView; typedef struct _EvWebViewClass EvWebViewClass; |