Mercurial > pidgin
comparison plugins/gevolution/add_buddy_dialog.c @ 9566:7a149eac59a3
[gaim-migrate @ 10409]
Patch by Henry Jen (bug #992152) to the gevolution plugin. He states:
"After associated a buddy with an existing contact, the IM information is
not appearing in the contact when view from evolution."
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 20 Jul 2004 00:10:36 +0000 |
parents | a5ec9e73f46d |
children | 94910b9520cf |
comparison
equal
deleted
inserted
replaced
9565:c60809a33460 | 9566:7a149eac59a3 |
---|---|
122 { | 122 { |
123 GtkWidget *item; | 123 GtkWidget *item; |
124 GtkWidget *menu; | 124 GtkWidget *menu; |
125 #if notyet | 125 #if notyet |
126 ESourceList *addressbooks; | 126 ESourceList *addressbooks; |
127 GList *groups, *g; | 127 GSList *groups, *g; |
128 #endif | 128 #endif |
129 | 129 |
130 menu = | 130 menu = |
131 gtk_option_menu_get_menu(GTK_OPTION_MENU(dialog->addressbooks_menu)); | 131 gtk_option_menu_get_menu(GTK_OPTION_MENU(dialog->addressbooks_menu)); |
132 | 132 |
145 gtk_widget_show(item); | 145 gtk_widget_show(item); |
146 | 146 |
147 return; | 147 return; |
148 } | 148 } |
149 | 149 |
150 groups = e_source_list_peek_groups(list); | 150 groups = e_source_list_peek_groups(addressbooks); |
151 | 151 |
152 if (groups == NULL) | 152 if (groups == NULL) |
153 { | 153 { |
154 item = gtk_menu_item_new_with_label(_("None")); | 154 item = gtk_menu_item_new_with_label(_("None")); |
155 gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); | 155 gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); |
158 return; | 158 return; |
159 } | 159 } |
160 | 160 |
161 for (g = groups; g != NULL; g = g->next) | 161 for (g = groups; g != NULL; g = g->next) |
162 { | 162 { |
163 GList *sources, *s; | 163 GSList *sources, *s; |
164 | 164 |
165 sources = e_source_group_peek_sources(g->data); | 165 sources = e_source_group_peek_sources(g->data); |
166 | 166 |
167 for (p = sources; p != NULL; p = p->next) | 167 for (s = sources; s != NULL; s = s->next) |
168 { | 168 { |
169 ESource *source = E_SOURCE(p->data); | 169 ESource *source = E_SOURCE(s->data); |
170 | 170 |
171 item = gtk_menu_item_new_with_label(e_source_peek_name(source)); | 171 item = gtk_menu_item_new_with_label(e_source_peek_name(source)); |
172 gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); | 172 gtk_menu_shell_append(GTK_MENU_SHELL(menu), item); |
173 gtk_widget_show(item); | 173 gtk_widget_show(item); |
174 } | 174 } |