comparison src/savedstatuses.h @ 12688:473c23442a36

[gaim-migrate @ 15031] Add the notion of "popular" saved statuses. This lets us show 6 recently used/popular statuses in the context menu for the docklet. Eventually I'll add the same list to the status box--but that's a little more work. If someone else wants to tackle it before I have a chance to feel free (and let me know!) Does this look ok to everyone (the docklet menu changes)? Would it be better if it was a submenu? Or if it was labeled? It'd be cool if the icons reflected the status. Oh, and I just remembered that the menu items don't actually work yet... but that's not too hard, I think I can get to that tonight committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 03 Jan 2006 01:25:06 +0000
parents fc464a0abccc
children d03afaccd41c
comparison
equal deleted inserted replaced
12687:88ccc3603163 12688:473c23442a36
150 * @return A list of saved statuses. 150 * @return A list of saved statuses.
151 */ 151 */
152 const GList *gaim_savedstatuses_get_all(void); 152 const GList *gaim_savedstatuses_get_all(void);
153 153
154 /** 154 /**
155 * Returns the n most popular saved statuses. "Popularity" is
156 * determined by when the last time a saved_status was used and
157 * how many times it has been used.
158 *
159 * @param how_many The maximum number of saved statuses
160 * to return, or '0' to get all saved
161 * statuses sorted by popularity.
162 * @return A linked list containing at most how_many
163 * GaimSavedStatuses. This list should be
164 * g_list_free'd by the caller (but the
165 * GaimSavedStatuses must not be free'd).
166 */
167 GList *gaim_savedstatuses_get_popular(unsigned int how_many);
168
169 /**
155 * Returns the currently selected saved status. 170 * Returns the currently selected saved status.
156 * 171 *
157 * @return A pointer to the in-use GaimSavedStatus. 172 * @return A pointer to the in-use GaimSavedStatus.
158 */ 173 */
159 GaimSavedStatus *gaim_savedstatus_get_current(void); 174 GaimSavedStatus *gaim_savedstatus_get_current(void);