mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 07:06:02 +01:00
Add a cast
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
b6778e390d
commit
71e10b5f3c
1 changed files with 2 additions and 2 deletions
|
@ -870,7 +870,7 @@ document_save(zathura_t* zathura, const char* path, bool overwrite)
|
||||||
static void
|
static void
|
||||||
remove_page_from_table(GtkWidget* page, gpointer permanent)
|
remove_page_from_table(GtkWidget* page, gpointer permanent)
|
||||||
{
|
{
|
||||||
if (permanent == false) {
|
if ((bool)permanent == false) {
|
||||||
g_object_ref(G_OBJECT(page));
|
g_object_ref(G_OBJECT(page));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -949,7 +949,7 @@ document_close(zathura_t* zathura, bool keep_monitor)
|
||||||
zathura->sync.render_thread = NULL;
|
zathura->sync.render_thread = NULL;
|
||||||
|
|
||||||
/* remove widgets */
|
/* remove widgets */
|
||||||
gtk_container_foreach(GTK_CONTAINER(zathura->ui.page_widget), remove_page_from_table, (gpointer) 1);
|
gtk_container_foreach(GTK_CONTAINER(zathura->ui.page_widget), remove_page_from_table, (gpointer) true);
|
||||||
for (unsigned int i = 0; i < zathura_document_get_number_of_pages(zathura->document); i++) {
|
for (unsigned int i = 0; i < zathura_document_get_number_of_pages(zathura->document); i++) {
|
||||||
g_object_unref(zathura->pages[i]);
|
g_object_unref(zathura->pages[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue