From c52f17a1777eb5f8b92634450b2bb134336c9c20 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 15 Dec 2009 23:59:18 -0500 Subject: Kill em_utils_adjustment_page(). --- mail/em-utils.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'mail/em-utils.c') diff --git a/mail/em-utils.c b/mail/em-utils.c index ca824d9bbe..bf4357aff3 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -1168,35 +1168,6 @@ em_utils_folder_is_outbox(CamelFolder *folder, const gchar *uri) local_outbox_folder_uri, uri); } -/** - * em_utils_adjustment_page: - * @adj: - * @down: - * - * Move an adjustment up/down forward/back one page. - **/ -void -em_utils_adjustment_page(GtkAdjustment *adj, gboolean down) -{ - gfloat page_size = adj->page_size - adj->step_increment; - - if (down) { - if (adj->value < adj->upper - adj->page_size - page_size) - adj->value += page_size; - else if (adj->upper >= adj->page_size) - adj->value = adj->upper - adj->page_size; - else - adj->value = adj->lower; - } else { - if (adj->value > adj->lower + page_size) - adj->value -= page_size; - else - adj->value = adj->lower; - } - - gtk_adjustment_value_changed(adj); -} - /* ********************************************************************** */ static EProxy *emu_proxy = NULL; static GStaticMutex emu_proxy_lock = G_STATIC_MUTEX_INIT; -- cgit