comparison src/notify.c @ 12257:ca27de274225

[gaim-migrate @ 14559] Patches from Bartosz Oler with some changes by me. The summary of changes is: 1. Fix a silly bug I introduced when editing previous patches. 2. Add some error handling. 3. Unify some types. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 29 Nov 2005 19:26:03 +0000
parents 976677e67239
children 851b0bd7eb52
comparison
equal deleted inserted replaced
12256:0eed625872f7 12257:ca27de274225
299 sc->title = g_strdup(title); 299 sc->title = g_strdup(title);
300 300
301 return sc; 301 return sc;
302 } 302 }
303 303
304 int 304 guint
305 gaim_notify_searchresults_get_columns_count(GaimNotifySearchResults *results) 305 gaim_notify_searchresults_get_columns_count(GaimNotifySearchResults *results)
306 { 306 {
307 g_return_val_if_fail(results != NULL, -1); 307 g_return_val_if_fail(results != NULL, 0);
308 308
309 return g_list_length(results->columns); 309 return g_list_length(results->columns);
310 } 310 }
311 311
312 int 312 guint
313 gaim_notify_searchresults_get_rows_count(GaimNotifySearchResults *results) 313 gaim_notify_searchresults_get_rows_count(GaimNotifySearchResults *results)
314 { 314 {
315 g_return_val_if_fail(results != NULL, -1); 315 g_return_val_if_fail(results != NULL, 0);
316 316
317 return g_list_length(results->rows); 317 return g_list_length(results->rows);
318 } 318 }
319 319
320 char * 320 char *