comparison src/gtkstatusbox.c @ 11523:1116993aadd2

[gaim-migrate @ 13771] Incorporated Autorecon's code into the core. Removed the Disconnected window Shows connection errors in status box. This works _ok_ when signed on with a single account, but won't currently Handle multiple accounts at all. I wanted to get this in before going to bed tonight, so I can work on it later, though. Feel free to help. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 12 Sep 2005 06:46:43 +0000
parents 6f9fc83ee25c
children 9f521a61ef58
comparison
equal deleted inserted replaced
11522:a26eb48d1953 11523:1116993aadd2
188 title, aa_color, status_box->desc); 188 title, aa_color, status_box->desc);
189 } else { 189 } else {
190 text = g_strdup_printf("%s", title); 190 text = g_strdup_printf("%s", title);
191 } 191 }
192 192
193 if (status_box->error) 193 if (status_box->connecting)
194 pixbuf = status_box->connecting_pixbufs[status_box->connecting_index];
195 else if (status_box->error)
194 pixbuf = status_box->error_pixbuf; 196 pixbuf = status_box->error_pixbuf;
195 else if (status_box->typing) 197 else if (status_box->typing)
196 pixbuf = status_box->typing_pixbufs[status_box->typing_index]; 198 pixbuf = status_box->typing_pixbufs[status_box->typing_index];
197 else if (status_box->connecting)
198 pixbuf = status_box->connecting_pixbufs[status_box->connecting_index];
199 else 199 else
200 pixbuf = status_box->pixbuf; 200 pixbuf = status_box->pixbuf;
201 201
202 gtk_list_store_set(status_box->store, &(status_box->iter), 202 gtk_list_store_set(status_box->store, &(status_box->iter),
203 ICON_COLUMN, pixbuf, 203 ICON_COLUMN, pixbuf,
419 } 419 }
420 420
421 void 421 void
422 gtk_gaim_status_box_set_error(GtkGaimStatusBox *status_box, const gchar *error) 422 gtk_gaim_status_box_set_error(GtkGaimStatusBox *status_box, const gchar *error)
423 { 423 {
424 if (status_box->error)
425 g_free(status_box->error);
424 status_box->error = g_strdup(error); 426 status_box->error = g_strdup(error);
425 gtk_gaim_status_box_refresh(status_box); 427 gtk_gaim_status_box_refresh(status_box);
426 } 428 }
427 429
428 void 430 void