comparison src/gtkblist.c @ 13023:e8adf8183cf4

[gaim-migrate @ 15376] A few tweaks. Don't show connection errors in the buddy list. Anything else for beta2? I'll tag and make tarballs tonight around 11:30 EST, if not. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 23 Jan 2006 23:16:31 +0000
parents 228b1f95e5b4
children d09b19783b8d
comparison
equal deleted inserted replaced
13022:228b1f95e5b4 13023:e8adf8183cf4
3468 3468
3469 static void 3469 static void
3470 connection_error_button_clicked_cb(GtkButton *widget, gpointer user_data) 3470 connection_error_button_clicked_cb(GtkButton *widget, gpointer user_data)
3471 { 3471 {
3472 GaimAccount *account; 3472 GaimAccount *account;
3473 char *text; 3473 char *primary;
3474 const char *text;
3474 3475
3475 account = user_data; 3476 account = user_data;
3477 primary = g_strdup_printf(_("%s disconnected"),
3478 gaim_account_get_username(account));
3476 text = g_hash_table_lookup(gtkblist->connection_errors, account); 3479 text = g_hash_table_lookup(gtkblist->connection_errors, account);
3477 gaim_notify_formatted(NULL, _("Connection Error"), 3480 gaim_notify_formatted(NULL, _("Connection Error"),
3478 _("Connection Error"), NULL, text, NULL, NULL); 3481 primary, NULL, text, NULL, NULL);
3479 gtk_widget_destroy(GTK_WIDGET(widget)); 3482 gtk_widget_destroy(GTK_WIDGET(widget));
3480 g_hash_table_remove(gtkblist->connection_errors, account); 3483 g_hash_table_remove(gtkblist->connection_errors, account);
3481 } 3484 }
3482 3485
3483 /* Add some buttons that show connection errors */ 3486 /* Add some buttons that show connection errors */
3489 gchar *text, *filename; 3492 gchar *text, *filename;
3490 GtkWidget *button, *label, *image, *hbox; 3493 GtkWidget *button, *label, *image, *hbox;
3491 GdkPixbuf *pixbuf, *emblem, *scale; 3494 GdkPixbuf *pixbuf, *emblem, *scale;
3492 3495
3493 account = key; 3496 account = key;
3494 text = g_strdup_printf("<span color=\"red\">%s disconnected: %s</span>", 3497 text = g_strdup_printf(_("<span color=\"red\">%s disconnected: %s</span>"),
3495 gaim_account_get_username(account), 3498 gaim_account_get_username(account),
3496 (gchar *)value); 3499 (gchar *)value);
3497 3500
3498 /* 3501 /*
3499 * TODO: The text needs to be bold and red. And it would probably 3502 * TODO: The text needs to be bold and red. And it would probably