comparison libpurple/notify.h @ 32308:3e4b6ffbb551

propagate from branch 'im.pidgin.pidgin' (head 64f4eb5c598356fe1b8b9bc376faa66641096eda) to branch 'im.pidgin.pidgin.next.major' (head 950eb2e674f6da789c0132765c4f2d68ccd0d617)
author Mark Doliner <mark@kingant.net>
date Sun, 12 Jun 2011 17:56:24 +0000
parents ea4bb5fe1fdc
children 489b20ff1c72
comparison
equal deleted inserted replaced
32115:3a3af6ad3166 32308:3e4b6ffbb551
109 /** 109 /**
110 * Single column of a search result. 110 * Single column of a search result.
111 */ 111 */
112 typedef struct 112 typedef struct
113 { 113 {
114 char *title; /**< Title of the column. */ 114 char *title; /**< Title of the column. */
115 gboolean visible; /**< Should the column be visible to the user. Defaults to TRUE. */
115 116
116 } PurpleNotifySearchColumn; 117 } PurpleNotifySearchColumn;
117 118
118 119
119 /** 120 /**
264 * @return The new search results object. 265 * @return The new search results object.
265 */ 266 */
266 PurpleNotifySearchResults *purple_notify_searchresults_new(void); 267 PurpleNotifySearchResults *purple_notify_searchresults_new(void);
267 268
268 /** 269 /**
269 * Returns a newly created search result column object. 270 * Returns a newly created search result column object. The column defaults
271 * to being visible.
270 * 272 *
271 * @param title Title of the column. NOTE: Title will get g_strdup()ed. 273 * @param title Title of the column. NOTE: Title will get g_strdup()ed.
272 * 274 *
273 * @return The new search column object. 275 * @return The new search column object.
274 */ 276 */
275 PurpleNotifySearchColumn *purple_notify_searchresults_column_new(const char *title); 277 PurpleNotifySearchColumn *purple_notify_searchresults_column_new(const char *title);
278
279 /**
280 * Sets whether or not a search result column is visible.
281 *
282 * @param field The search column object.
283 * @param visible TRUE if visible, or FALSE if not.
284 */
285 void purple_notify_searchresult_column_set_visible(PurpleNotifySearchColumn *column, gboolean visible);
286
287 /**
288 * Returns whether or not a search result column is visible.
289 *
290 * @param field The search column object.
291 *
292 * @return TRUE if the search result column is visible. FALSE otherwise.
293 */
294 gboolean purple_notify_searchresult_column_is_visible(const PurpleNotifySearchColumn *column);
276 295
277 /** 296 /**
278 * Adds a new column to the search result object. 297 * Adds a new column to the search result object.
279 * 298 *
280 * @param results The result object to which the column will be added. 299 * @param results The result object to which the column will be added.