Commit 8a9bd7f5 authored by Sebastian Ramacher's avatar Sebastian Ramacher

We don't need zathura

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 7d5863ae
......@@ -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:
......
......@@ -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)
{
......
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment