From 8a9bd7f512818d07eccf3a0d8861a76e3d4b7e8a Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Fri, 30 Aug 2013 15:43:43 +0200 Subject: [PATCH] We don't need zathura Signed-off-by: Sebastian Ramacher --- page-widget.c | 2 +- render.c | 9 +++++---- render.h | 2 +- zathura.c | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/page-widget.c b/page-widget.c index 5669afb..775c6d8 100644 --- a/page-widget.c +++ b/page-widget.c @@ -299,7 +299,7 @@ zathura_page_widget_set_property(GObject* object, guint prop_id, const GValue* v */ if (priv->search.list != NULL && zathura_page_get_visibility(priv->page)) { - gtk_widget_queue_draw(GTK_WIDGET(object)); + gtk_widget_queue_draw(GTK_WIDGET(object)); } break; default: diff --git a/render.c b/render.c index d0acdab..99644e6 100644 --- a/render.c +++ b/render.c @@ -87,11 +87,10 @@ zathura_renderer_init(ZathuraRenderer* renderer) } ZathuraRenderer* -zathura_renderer_new(zathura_t* zathura) +zathura_renderer_new() { - g_return_val_if_fail(zathura != NULL, NULL); - - return g_object_new(ZATHURA_TYPE_RENDERER, /*"page", page, "zathura", zathura, */ NULL); + GObject* obj = g_object_new(ZATHURA_TYPE_RENDERER, NULL); + return ZATHURA_RENDERER(obj); } static void @@ -325,6 +324,8 @@ zathura_render_request_abort(ZathuraRenderRequest* request) } +/* render job */ + static void render_job(void* data, void* user_data) { diff --git a/render.h b/render.h index a781cd8..f8b7e75 100644 --- a/render.h +++ b/render.h @@ -46,7 +46,7 @@ GType zathura_renderer_get_type(void); * @param page the page to be displayed * @return a page view widget */ -ZathuraRenderer* zathura_renderer_new(zathura_t* zathura); +ZathuraRenderer* zathura_renderer_new(void); bool zathura_renderer_recolor_enabled(ZathuraRenderer* renderer); void zathura_renderer_enable_recolor(ZathuraRenderer* renderer, bool enable); diff --git a/zathura.c b/zathura.c index d639a38..19d4a20 100644 --- a/zathura.c +++ b/zathura.c @@ -711,7 +711,7 @@ document_open(zathura_t* zathura, const char* path, const char* password, zathura->document = document; /* threads */ - zathura->sync.render_thread = zathura_renderer_new(zathura); + zathura->sync.render_thread = zathura_renderer_new(); if (zathura->sync.render_thread == NULL) { goto error_free;