Mercurial > pidgin
comparison libpurple/notify.c @ 32672:3828a61c44da
A boring and large patch so I can merge heads.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 23 Dec 2011 08:21:58 +0000 |
parents | 0cc718e10344 |
children |
comparison
equal
deleted
inserted
replaced
32671:0e69949b3e61 | 32672:3828a61c44da |
---|---|
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); |