Mercurial > pidgin
comparison finch/gntroomlist.c @ 31971:ecfbb3ba0135
Rather use the accessor functions directly.
author | andrew.victor@mxit.com |
---|---|
date | Fri, 26 Aug 2011 20:29:23 +0000 |
parents | 5dafa68c8eb0 |
children |
comparison
equal
deleted
inserted
replaced
31970:e893296d853b | 31971:ecfbb3ba0135 |
---|---|
39 | 39 |
40 #include "debug.h" | 40 #include "debug.h" |
41 | 41 |
42 #define PREF_ROOT "/finch/roomlist" | 42 #define PREF_ROOT "/finch/roomlist" |
43 | 43 |
44 #undef FINCH_GET_DATA | |
45 #undef FINCH_SET_DATA | |
46 #define FINCH_GET_DATA(obj) purple_roomlist_get_ui_data(obj) | |
47 #define FINCH_SET_DATA(obj, data) purple_roomlist_set_ui_data(obj, data) | |
48 | |
49 | 44 |
50 /* Yes, just one roomlist at a time. Let's not get greedy. Aight? */ | 45 /* Yes, just one roomlist at a time. Let's not get greedy. Aight? */ |
51 struct _FinchRoomlist | 46 struct _FinchRoomlist |
52 { | 47 { |
53 GntWidget *window; | 48 GntWidget *window; |
347 } | 342 } |
348 | 343 |
349 static void | 344 static void |
350 fl_create(PurpleRoomlist *list) | 345 fl_create(PurpleRoomlist *list) |
351 { | 346 { |
352 FINCH_SET_DATA(list, &froomlist); | 347 purple_roomlist_set_ui_data(list, &froomlist); |
353 setup_roomlist(NULL); | 348 setup_roomlist(NULL); |
354 update_roomlist(list); | 349 update_roomlist(list); |
355 } | 350 } |
356 | 351 |
357 static void | 352 static void |