comparison plugins/chatlist.c @ 2900:aaaca46b507b

[gaim-migrate @ 2913] i love you all. thanks jharris committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 20 Dec 2001 12:39:41 +0000
parents 3a8df5c3d1ee
children 7239a392486c
comparison
equal deleted inserted replaced
2899:019d7462337b 2900:aaaca46b507b
82 gtk_widget_show(titem); 82 gtk_widget_show(titem);
83 gtk_signal_connect(GTK_OBJECT(titem), "button_press_event", 83 gtk_signal_connect(GTK_OBJECT(titem), "button_press_event",
84 GTK_SIGNAL_FUNC(handle_click_chat), cr); 84 GTK_SIGNAL_FUNC(handle_click_chat), cr);
85 crs = crs->next; 85 crs = crs->next;
86 } 86 }
87
88 gtk_tree_item_expand(GTK_TREE_ITEM(item));
87 } 89 }
88 90
89 static void save_chat_prefs() 91 static void save_chat_prefs()
90 { 92 {
91 FILE *f; 93 FILE *f;
174 if (c - text > len - 30) 176 if (c - text > len - 30)
175 break; /* assume no chat rooms 30 from end, padding */ 177 break; /* assume no chat rooms 30 from end, padding */
176 if (!g_strncasecmp(AOL_SRCHSTR, c, strlen(AOL_SRCHSTR))) { 178 if (!g_strncasecmp(AOL_SRCHSTR, c, strlen(AOL_SRCHSTR))) {
177 char *t; 179 char *t;
178 int len = 0; 180 int len = 0;
179 int exchange; 181 int exchange = 4;
180 char *name = NULL; 182 char *name = NULL;
181 183
182 c += strlen(AOL_SRCHSTR); 184 c += strlen(AOL_SRCHSTR);
183 t = c; 185 t = c;
184 while (t) { 186 while (t) {
186 name = g_realloc(name, len); 188 name = g_realloc(name, len);
187 if (*t == '+') 189 if (*t == '+')
188 name[len - 1] = ' '; 190 name[len - 1] = ' ';
189 else if (*t == '&') { 191 else if (*t == '&') {
190 name[len - 1] = 0; 192 name[len - 1] = 0;
191 sscanf(t, "&Exchange=%d", &exchange); 193 sscanf(t, "&amp;Exchange=%d", &exchange);
192 c = t + strlen("&Exchange=x"); 194 c = t + strlen("&amp;Exchange=x");
193 break; 195 break;
194 } else 196 } else
195 name[len - 1] = *t; 197 name[len - 1] = *t;
196 t++; 198 t++;
197 } 199 }