diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-04-13 02:46:51 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-04-13 02:46:51 +0800 |
commit | 315602a7406e49973c18b16aeb83b51286ebca04 (patch) | |
tree | 3a99da57e8cec52db5ade7ca8f990670fdc9d7da /mail | |
parent | 739cb175076f824663a308a217fd797896988cff (diff) | |
download | gsoc2013-evolution-315602a7406e49973c18b16aeb83b51286ebca04.tar.gz gsoc2013-evolution-315602a7406e49973c18b16aeb83b51286ebca04.tar.zst gsoc2013-evolution-315602a7406e49973c18b16aeb83b51286ebca04.zip |
New function. (message_list_set_scrollbar_position): New function.
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.
svn path=/trunk/; revision=25417
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/message-list.c | 20 | ||||
-rw-r--r-- | mail/message-list.h | 3 |
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) |