comparison libpurple/notify.h @ 32827:4a34689eeb33 default tip

merged from im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 19 Nov 2011 14:42:54 +0900
parents 8878ea011fa1
children
comparison
equal deleted inserted replaced
32692:0f94ec89f0bc 32827:4a34689eeb33
30 #include <stdlib.h> 30 #include <stdlib.h>
31 #include <glib-object.h> 31 #include <glib-object.h>
32 #include <glib.h> 32 #include <glib.h>
33 33
34 typedef struct _PurpleNotifyUserInfoEntry PurpleNotifyUserInfoEntry; 34 typedef struct _PurpleNotifyUserInfoEntry PurpleNotifyUserInfoEntry;
35 typedef struct _PurpleNotifyUserInfo PurpleNotifyUserInfo; 35 typedef struct _PurpleNotifyUserInfo PurpleNotifyUserInfo;
36 /** @copydoc _PurpleNotifySearchColumn */
37 typedef struct _PurpleNotifySearchColumn PurpleNotifySearchColumn;
36 38
37 #include "connection.h" 39 #include "connection.h"
40
38 41
39 /** 42 /**
40 * Notification close callbacks. 43 * Notification close callbacks.
41 */ 44 */
42 typedef void (*PurpleNotifyCloseCallback) (gpointer user_data); 45 typedef void (*PurpleNotifyCloseCallback) (gpointer user_data);
104 PURPLE_NOTIFY_USER_INFO_ENTRY_PAIR = 0, 107 PURPLE_NOTIFY_USER_INFO_ENTRY_PAIR = 0,
105 PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK, 108 PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK,
106 PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER 109 PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER
107 } PurpleNotifyUserInfoEntryType; 110 } PurpleNotifyUserInfoEntryType;
108 111
109 /**
110 * Single column of a search result.
111 */
112 typedef struct
113 {
114 char *title; /**< Title of the column. */
115 gboolean visible; /**< Should the column be visible to the user. Defaults to TRUE. */
116
117 } PurpleNotifySearchColumn;
118 112
119 113
120 /** 114 /**
121 * Callback for a button in a search result. 115 * Callback for a button in a search result.
122 * 116 *
273 * @param title Title of the column. NOTE: Title will get g_strdup()ed. 267 * @param title Title of the column. NOTE: Title will get g_strdup()ed.
274 * 268 *
275 * @return The new search column object. 269 * @return The new search column object.
276 */ 270 */
277 PurpleNotifySearchColumn *purple_notify_searchresults_column_new(const char *title); 271 PurpleNotifySearchColumn *purple_notify_searchresults_column_new(const char *title);
272
273 /**
274 * Returns the title of the column
275 *
276 * @param column The search column object.
277 *
278 * @return The title of the column
279 */
280 const char *purple_notify_searchresult_column_get_title(const PurpleNotifySearchColumn *column);
278 281
279 /** 282 /**
280 * Sets whether or not a search result column is visible. 283 * Sets whether or not a search result column is visible.
281 * 284 *
282 * @param column The search column object. 285 * @param column The search column object.