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 ----------------------------- mail/em-utils.h | 2 -- 2 files changed, 31 deletions(-) (limited to 'mail') 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; diff --git a/mail/em-utils.h b/mail/em-utils.h index 5cf3dfa851..db2a7c6952 100644 --- a/mail/em-utils.h +++ b/mail/em-utils.h @@ -75,8 +75,6 @@ gboolean em_utils_folder_is_templates(CamelFolder *folder, const gchar *uri); gboolean em_utils_folder_is_sent(CamelFolder *folder, const gchar *uri); gboolean em_utils_folder_is_outbox(CamelFolder *folder, const gchar *uri); -void em_utils_adjustment_page(GtkAdjustment *adj, gboolean down); - gchar *em_utils_get_proxy_uri (const gchar *uri); /* FIXME: should this have an override charset? */ -- cgit