Commit d7217218 authored by Moritz Lipp's avatar Moritz Lipp

Check if page_widget is a GTK_TABLE

parent 234ea6d3
......@@ -52,8 +52,10 @@ cb_page_padding_changed(girara_session_t* session, const char* UNUSED(name),
zathura_t* zathura = session->global.data;
int val = *(int*) value;
gtk_table_set_row_spacings(GTK_TABLE(zathura->ui.page_widget), val);
gtk_table_set_col_spacings(GTK_TABLE(zathura->ui.page_widget), val);
if (GTK_IS_TABLE(zathura->ui.page_widget) == TRUE) {
gtk_table_set_row_spacings(GTK_TABLE(zathura->ui.page_widget), val);
gtk_table_set_col_spacings(GTK_TABLE(zathura->ui.page_widget), val);
}
}
static void
......
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