aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/message-list.c20
-rw-r--r--mail/message-list.h3
3 files changed, 27 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 47d828b224..d9f4a9ab01 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,9 @@
2004-04-12 Jeffrey Stedfast <fejj@ximian.com>
+ * message-list.c (message_list_get_scrollbar_position): New
+ function.
+ (message_list_set_scrollbar_position): New function.
+
* em-utils.c (em_uri_to_camel): If the provider is unavailable,
return euri like the other fail cases. Fixes bug #56846.
diff --git a/mail/message-list.c b/mail/message-list.c
index 002b50c0bd..23248a55ad 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -3403,3 +3403,23 @@ mail_regen_list (MessageList *ml, const char *search, const char *hideexpr, Came
e_thread_put (mail_thread_new, (EMsg *)m);
}
+
+
+double
+message_list_get_scrollbar_position (MessageList *ml)
+{
+ GtkAdjustment *adj;
+
+ adj = gtk_scrolled_window_get_vadjustment ((GtkScrolledWindow *) ml);
+ return gtk_adjustment_get_value (adj);
+}
+
+
+void
+message_list_set_scrollbar_position (MessageList *ml, double pos)
+{
+ GtkAdjustment *adj;
+
+ adj = gtk_scrolled_window_get_vadjustment ((GtkScrolledWindow *) ml);
+ gtk_adjustment_set_value (adj, pos);
+}
diff --git a/mail/message-list.h b/mail/message-list.h
index 8052ed791b..393edb700f 100644
--- a/mail/message-list.h
+++ b/mail/message-list.h
@@ -206,6 +206,9 @@ void message_list_set_search (MessageList *ml, const char *search);
void message_list_save_state (MessageList *ml);
+double message_list_get_scrollbar_position (MessageList *ml);
+void message_list_set_scrollbar_position (MessageList *ml, double pos);
+
#define MESSAGE_LIST_LOCK(m, l) g_mutex_lock(((MessageList *)m)->l)
#define MESSAGE_LIST_UNLOCK(m, l) g_mutex_unlock(((MessageList *)m)->l)