comparison libpurple/notify.c @ 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 ac6353ffa129 8878ea011fa1
children
comparison
equal deleted inserted replaced
32692:0f94ec89f0bc 32827:4a34689eeb33
54 struct _PurpleNotifyUserInfo 54 struct _PurpleNotifyUserInfo
55 { 55 {
56 GQueue entries; 56 GQueue entries;
57 }; 57 };
58 58
59 /**
60 * Single column of a search result.
61 */
62 struct _PurpleNotifySearchColumn
63 {
64 char *title; /**< Title of the column. */
65 gboolean visible; /**< Should the column be visible to the user. Defaults to TRUE. */
66
67 };
68
59 void * 69 void *
60 purple_notify_message(void *handle, PurpleNotifyMsgType type, 70 purple_notify_message(void *handle, PurpleNotifyMsgType type,
61 const char *title, const char *primary, 71 const char *title, const char *primary,
62 const char *secondary, PurpleNotifyCloseCallback cb, gpointer user_data) 72 const char *secondary, PurpleNotifyCloseCallback cb, gpointer user_data)
63 { 73 {
364 sc = g_new0(PurpleNotifySearchColumn, 1); 374 sc = g_new0(PurpleNotifySearchColumn, 1);
365 sc->title = g_strdup(title); 375 sc->title = g_strdup(title);
366 sc->visible = TRUE; 376 sc->visible = TRUE;
367 377
368 return sc; 378 return sc;
379 }
380
381 const char *purple_notify_searchresult_column_get_title(const PurpleNotifySearchColumn *column)
382 {
383 g_return_val_if_fail(column != NULL, NULL);
384
385 return column->title;
369 } 386 }
370 387
371 void purple_notify_searchresult_column_set_visible(PurpleNotifySearchColumn *column, gboolean visible) 388 void purple_notify_searchresult_column_set_visible(PurpleNotifySearchColumn *column, gboolean visible)
372 { 389 {
373 g_return_if_fail(column != NULL); 390 g_return_if_fail(column != NULL);