mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 22:35:59 +01:00
We don't need zathura
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
7d5863ae1d
commit
8a9bd7f512
4 changed files with 8 additions and 7 deletions
|
@ -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:
|
||||
|
|
9
render.c
9
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)
|
||||
{
|
||||
|
|
2
render.h
2
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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue