diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-12-16 12:59:18 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-12-16 12:59:18 +0800 |
commit | c52f17a1777eb5f8b92634450b2bb134336c9c20 (patch) | |
tree | 8ac6fc4a37c5543949b514ed53d9cd0c80ec7988 | |
parent | 0eb2649bdeca7908c0d399321a21ffe189e4b8f6 (diff) | |
download | gsoc2013-evolution-c52f17a1777eb5f8b92634450b2bb134336c9c20.tar.gz gsoc2013-evolution-c52f17a1777eb5f8b92634450b2bb134336c9c20.tar.zst gsoc2013-evolution-c52f17a1777eb5f8b92634450b2bb134336c9c20.zip |
Kill em_utils_adjustment_page().
-rw-r--r-- | mail/em-utils.c | 29 | ||||
-rw-r--r-- | mail/em-utils.h | 2 |
2 files changed, 0 insertions, 31 deletions
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? */ |