Mercurial > pidgin.yaz
comparison libpurple/conversation.c @ 17220:da2bab3b9fab
New api function purple_conversation_get_extended_menu.
New signal "conversation-extended-menu".
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 22 May 2007 03:28:12 +0000 |
parents | 7ade887fd3f6 |
children | c9a046a7f326 |
comparison
equal
deleted
inserted
replaced
17219:0598803f9b64 | 17220:da2bab3b9fab |
---|---|
1987 g_return_val_if_fail(cb != NULL, NULL); | 1987 g_return_val_if_fail(cb != NULL, NULL); |
1988 | 1988 |
1989 return cb->name; | 1989 return cb->name; |
1990 } | 1990 } |
1991 | 1991 |
1992 GList * | |
1993 purple_conversation_get_extended_menu(PurpleConversation *conv) | |
1994 { | |
1995 GList *menu = NULL; | |
1996 | |
1997 g_return_val_if_fail(conv != NULL, NULL); | |
1998 | |
1999 purple_signal_emit(purple_conversations_get_handle(), | |
2000 "conversation-extended-menu", conv, &menu); | |
2001 return menu; | |
2002 } | |
2003 | |
2004 | |
1992 void * | 2005 void * |
1993 purple_conversations_get_handle(void) | 2006 purple_conversations_get_handle(void) |
1994 { | 2007 { |
1995 static int handle; | 2008 static int handle; |
1996 | 2009 |
2250 purple_marshal_VOID__POINTER_POINTER_POINTER, NULL, 3, | 2263 purple_marshal_VOID__POINTER_POINTER_POINTER, NULL, 3, |
2251 purple_value_new(PURPLE_TYPE_SUBTYPE, | 2264 purple_value_new(PURPLE_TYPE_SUBTYPE, |
2252 PURPLE_SUBTYPE_CONVERSATION), | 2265 PURPLE_SUBTYPE_CONVERSATION), |
2253 purple_value_new(PURPLE_TYPE_STRING), | 2266 purple_value_new(PURPLE_TYPE_STRING), |
2254 purple_value_new(PURPLE_TYPE_STRING)); | 2267 purple_value_new(PURPLE_TYPE_STRING)); |
2268 | |
2269 purple_signal_register(handle, "conversation-extended-menu", | |
2270 purple_marshal_VOID__POINTER_POINTER, NULL, 2, | |
2271 purple_value_new(PURPLE_TYPE_SUBTYPE, | |
2272 PURPLE_SUBTYPE_CONVERSATION), | |
2273 purple_value_new(PURPLE_TYPE_BOXED, "GList **")); | |
2255 } | 2274 } |
2256 | 2275 |
2257 void | 2276 void |
2258 purple_conversations_uninit(void) | 2277 purple_conversations_uninit(void) |
2259 { | 2278 { |