pidgin/gtkconv.c

branch
soc.2013.gobjectification
changeset 34655
6a939719ea98
parent 34630
c1ebfa7d3a7a
child 34659
4fc616843cb2
equal deleted inserted replaced
34654:adffcd91c9a3 34655:6a939719ea98
3062 if (type == PURPLE_CONV_TYPE_IM) { 3062 if (type == PURPLE_CONV_TYPE_IM) {
3063 l = purple_conversations_get_ims(); 3063 l = purple_conversations_get_ims();
3064 } else if (type == PURPLE_CONV_TYPE_CHAT) { 3064 } else if (type == PURPLE_CONV_TYPE_CHAT) {
3065 l = purple_conversations_get_chats(); 3065 l = purple_conversations_get_chats();
3066 } else { 3066 } else {
3067 l = purple_conversations_get(); 3067 l = purple_conversations_get_all();
3068 } 3068 }
3069 3069
3070 for (; l != NULL && (max_count == 0 || c < max_count); l = l->next) { 3070 for (; l != NULL && (max_count == 0 || c < max_count); l = l->next) {
3071 PurpleConversation *conv = (PurpleConversation*)l->data; 3071 PurpleConversation *conv = (PurpleConversation*)l->data;
3072 PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv); 3072 PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv);
4847 minimum_entry_lines_pref_cb(const char *name, 4847 minimum_entry_lines_pref_cb(const char *name,
4848 PurplePrefType type, 4848 PurplePrefType type,
4849 gconstpointer value, 4849 gconstpointer value,
4850 gpointer data) 4850 gpointer data)
4851 { 4851 {
4852 GList *l = purple_conversations_get(); 4852 GList *l = purple_conversations_get_all();
4853 PurpleConversation *conv; 4853 PurpleConversation *conv;
4854 while (l != NULL) 4854 while (l != NULL)
4855 { 4855 {
4856 conv = (PurpleConversation *)l->data; 4856 conv = (PurpleConversation *)l->data;
4857 4857
7936 { 7936 {
7937 GList *l; 7937 GList *l;
7938 PurpleConversation *conv; 7938 PurpleConversation *conv;
7939 PidginConversation *gtkconv; 7939 PidginConversation *gtkconv;
7940 7940
7941 for (l = purple_conversations_get(); l != NULL; l = l->next) { 7941 for (l = purple_conversations_get_all(); l != NULL; l = l->next) {
7942 conv = (PurpleConversation *)l->data; 7942 conv = (PurpleConversation *)l->data;
7943 7943
7944 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) 7944 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv))
7945 continue; 7945 continue;
7946 7946
7959 { 7959 {
7960 GList *cl; 7960 GList *cl;
7961 PurpleConversation *conv; 7961 PurpleConversation *conv;
7962 PidginConversation *gtkconv; 7962 PidginConversation *gtkconv;
7963 7963
7964 for (cl = purple_conversations_get(); cl != NULL; cl = cl->next) { 7964 for (cl = purple_conversations_get_all(); cl != NULL; cl = cl->next) {
7965 7965
7966 conv = (PurpleConversation *)cl->data; 7966 conv = (PurpleConversation *)cl->data;
7967 7967
7968 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) 7968 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv))
7969 continue; 7969 continue;
8001 GList *l; 8001 GList *l;
8002 PurpleConversation *conv; 8002 PurpleConversation *conv;
8003 PidginConversation *gtkconv; 8003 PidginConversation *gtkconv;
8004 PidginWindow *win; 8004 PidginWindow *win;
8005 8005
8006 for (l = purple_conversations_get(); l != NULL; l = l->next) 8006 for (l = purple_conversations_get_all(); l != NULL; l = l->next)
8007 { 8007 {
8008 conv = (PurpleConversation *)l->data; 8008 conv = (PurpleConversation *)l->data;
8009 8009
8010 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) 8010 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv))
8011 continue; 8011 continue;
8058 show_buddy_icons_pref_cb(const char *name, PurplePrefType type, 8058 show_buddy_icons_pref_cb(const char *name, PurplePrefType type,
8059 gconstpointer value, gpointer data) 8059 gconstpointer value, gpointer data)
8060 { 8060 {
8061 GList *l; 8061 GList *l;
8062 8062
8063 for (l = purple_conversations_get(); l != NULL; l = l->next) { 8063 for (l = purple_conversations_get_all(); l != NULL; l = l->next) {
8064 PurpleConversation *conv = l->data; 8064 PurpleConversation *conv = l->data;
8065 if (!PIDGIN_CONVERSATION(conv)) 8065 if (!PIDGIN_CONVERSATION(conv))
8066 continue; 8066 continue;
8067 if (GPOINTER_TO_INT(value)) 8067 if (GPOINTER_TO_INT(value))
8068 gtk_widget_show(PIDGIN_CONVERSATION(conv)->infopane_hbox); 8068 gtk_widget_show(PIDGIN_CONVERSATION(conv)->infopane_hbox);
8086 static void 8086 static void
8087 show_protocol_icons_pref_cb(const char *name, PurplePrefType type, 8087 show_protocol_icons_pref_cb(const char *name, PurplePrefType type,
8088 gconstpointer value, gpointer data) 8088 gconstpointer value, gpointer data)
8089 { 8089 {
8090 GList *l; 8090 GList *l;
8091 for (l = purple_conversations_get(); l != NULL; l = l->next) { 8091 for (l = purple_conversations_get_all(); l != NULL; l = l->next) {
8092 PurpleConversation *conv = l->data; 8092 PurpleConversation *conv = l->data;
8093 if (PIDGIN_CONVERSATION(conv)) 8093 if (PIDGIN_CONVERSATION(conv))
8094 update_tab_icon(conv); 8094 update_tab_icon(conv);
8095 } 8095 }
8096 } 8096 }
8208 static void 8208 static void
8209 account_signed_off_cb(PurpleConnection *gc, gpointer event) 8209 account_signed_off_cb(PurpleConnection *gc, gpointer event)
8210 { 8210 {
8211 GList *iter; 8211 GList *iter;
8212 8212
8213 for (iter = purple_conversations_get(); iter; iter = iter->next) 8213 for (iter = purple_conversations_get_all(); iter; iter = iter->next)
8214 { 8214 {
8215 PurpleConversation *conv = iter->data; 8215 PurpleConversation *conv = iter->data;
8216 8216
8217 /* This seems fine in theory, but we also need to cover the 8217 /* This seems fine in theory, but we also need to cover the
8218 * case of this account matching one of the other buddies in 8218 * case of this account matching one of the other buddies in

mercurial