comparison libpurple/notify.c @ 32781:8878ea011fa1

Hide struct PurpleNotifySearchColumn.
author andrew.victor@mxit.com
date Fri, 21 Oct 2011 21:29:33 +0000
parents 0cc718e10344
children 4a34689eeb33
comparison
equal deleted inserted replaced
32780:75104780b1a3 32781:8878ea011fa1
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);