adopt to latest girara changes

This commit is contained in:
Sebastian Ramacher 2011-11-20 11:32:34 +01:00
parent 8146ebdb3d
commit f8f48dcc7d
2 changed files with 6 additions and 4 deletions

View File

@ -82,10 +82,12 @@ cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data)
}
void
cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), girara_setting_t* setting)
cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), const char* UNUSED(name), girara_setting_type_t UNUSED(type), void* value, void* data)
{
int pages_per_row = setting->value.i;
zathura_t* zathura = setting->data;
g_return_if_fail(value != NULL);
int pages_per_row = *(int*) value;
zathura_t* zathura = data;
if (pages_per_row < 1) {
pages_per_row = 1;

View File

@ -39,7 +39,7 @@ void cb_view_vadjustment_value_changed(GtkAdjustment *adjustment, gpointer data)
* @param session The current girara session
* @param setting The "pages-per-row" setting
*/
void cb_pages_per_row_value_changed(girara_session_t* session, girara_setting_t* setting);
void cb_pages_per_row_value_changed(girara_session_t* UNUSED(session), const char* UNUSED(name), girara_setting_type_t UNUSED(type), void* value, void* data);
/**
* Called when an index element is activated (e.g.: double click)