mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-14 15:16:01 +01:00
Remove unused zathura_adjustment_clone
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
71e10b5f3c
commit
935964bbf5
2 changed files with 0 additions and 25 deletions
14
adjustment.c
14
adjustment.c
|
@ -146,20 +146,6 @@ page_is_visible(zathura_document_t *document, unsigned int page_number)
|
|||
fabs(pos_y - page_y) < 0.5 * (double)(view_height + cell_height) / (double)doc_height);
|
||||
}
|
||||
|
||||
GtkAdjustment*
|
||||
zathura_adjustment_clone(GtkAdjustment* adjustment)
|
||||
{
|
||||
gdouble value = gtk_adjustment_get_value(adjustment);
|
||||
gdouble lower = gtk_adjustment_get_lower(adjustment);
|
||||
gdouble upper = gtk_adjustment_get_upper(adjustment);
|
||||
gdouble step_increment = gtk_adjustment_get_step_increment(adjustment);
|
||||
gdouble page_increment = gtk_adjustment_get_page_increment(adjustment);
|
||||
gdouble page_size = gtk_adjustment_get_page_size(adjustment);
|
||||
|
||||
return GTK_ADJUSTMENT(gtk_adjustment_new(value, lower, upper, step_increment,
|
||||
page_increment, page_size));
|
||||
}
|
||||
|
||||
void
|
||||
zathura_adjustment_set_value(GtkAdjustment* adjustment, gdouble value)
|
||||
{
|
||||
|
|
11
adjustment.h
11
adjustment.h
|
@ -69,17 +69,6 @@ void page_number_to_position(zathura_document_t* document, unsigned int page_num
|
|||
*/
|
||||
bool page_is_visible(zathura_document_t *document, unsigned int page_number);
|
||||
|
||||
/**
|
||||
* Clone a GtkAdjustment
|
||||
*
|
||||
* Creates a new adjustment with the same value, lower and upper bounds, step
|
||||
* and page increments and page_size as the original adjustment.
|
||||
*
|
||||
* @param adjustment Adjustment instance to be cloned
|
||||
* @return Pointer to the new adjustment
|
||||
*/
|
||||
GtkAdjustment* zathura_adjustment_clone(GtkAdjustment* adjustment);
|
||||
|
||||
/**
|
||||
* Set the adjustment value while enforcing its limits
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue