We don't need zathura

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2013-08-30 15:43:43 +02:00
parent 7d5863ae1d
commit 8a9bd7f512
4 changed files with 8 additions and 7 deletions

View file

@ -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:

View file

@ -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)
{

View file

@ -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);

View file

@ -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;