Mercurial > pidgin
comparison finch/gntpounce.c @ 18058:4ca97b26a8fb
Mark the return type const for the following functions. I noticed this
while fixing some DBus stuff which I'll commit shortly.
* purple_accounts_get_all
* purple_connections_get_all
* purple_connections_get_connecting
* purple_conv_chat_get_ignored
* purple_conv_chat_get_users
* purple_get_chats
* purple_get_conversations
* purple_get_ims
* purple_notify_user_info_get_entries
References #1344
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 07 Jun 2007 04:22:42 +0000 |
parents | 08db93bbd798 |
children | 926ccb104da0 |
comparison
equal
deleted
inserted
replaced
18057:23b03396e71e | 18058:4ca97b26a8fb |
---|---|
286 GntWidget *window; | 286 GntWidget *window; |
287 GntWidget *bbox; | 287 GntWidget *bbox; |
288 GntWidget *hbox, *vbox; | 288 GntWidget *hbox, *vbox; |
289 GntWidget *button; | 289 GntWidget *button; |
290 GntWidget *combo; | 290 GntWidget *combo; |
291 GList *list; | 291 const GList *list; |
292 | 292 |
293 g_return_if_fail((cur_pounce != NULL) || | 293 g_return_if_fail((cur_pounce != NULL) || |
294 (account != NULL) || | 294 (account != NULL) || |
295 (purple_accounts_get_all() != NULL)); | 295 (purple_accounts_get_all() != NULL)); |
296 | 296 |
301 dialog->account = purple_pounce_get_pouncer(cur_pounce); | 301 dialog->account = purple_pounce_get_pouncer(cur_pounce); |
302 } else if (account != NULL) { | 302 } else if (account != NULL) { |
303 dialog->pounce = NULL; | 303 dialog->pounce = NULL; |
304 dialog->account = account; | 304 dialog->account = account; |
305 } else { | 305 } else { |
306 GList *connections = purple_connections_get_all(); | 306 const GList *connections = purple_connections_get_all(); |
307 PurpleConnection *gc; | 307 PurpleConnection *gc; |
308 | 308 |
309 if (connections != NULL) { | 309 if (connections != NULL) { |
310 gc = (PurpleConnection *)connections->data; | 310 gc = (PurpleConnection *)connections->data; |
311 dialog->account = purple_connection_get_account(gc); | 311 dialog->account = purple_connection_get_account(gc); |