Mercurial > pidgin.yaz
comparison pidgin/gtkblist.c @ 21662:231a425c3930
Having a long sentence as a title is a bit overly-bold, and I really want this dialog to say 'Welcome back'
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 27 Nov 2007 09:17:38 +0000 |
parents | c29f2e3a3b99 |
children | ebe79cae6d83 |
comparison
equal
deleted
inserted
replaced
21661:7dff569f2a6e | 21662:231a425c3930 |
---|---|
4599 { | 4599 { |
4600 elsewhere_foreach_account(mini_dialog, enable_account); | 4600 elsewhere_foreach_account(mini_dialog, enable_account); |
4601 } | 4601 } |
4602 | 4602 |
4603 static void | 4603 static void |
4604 ignore_elsewhere_accounts(PidginMiniDialog *mini_dialog, | |
4605 GtkButton *button, | |
4606 gpointer unused) | |
4607 { | |
4608 elsewhere_foreach_account(mini_dialog, purple_account_clear_current_error); | |
4609 } | |
4610 | |
4611 static void | |
4612 ensure_signed_on_elsewhere_minidialog(PidginBuddyList *gtkblist) | 4604 ensure_signed_on_elsewhere_minidialog(PidginBuddyList *gtkblist) |
4613 { | 4605 { |
4614 PidginBuddyListPrivate *priv = PIDGIN_BUDDY_LIST_GET_PRIVATE(gtkblist); | 4606 PidginBuddyListPrivate *priv = PIDGIN_BUDDY_LIST_GET_PRIVATE(gtkblist); |
4615 PidginMiniDialog *mini_dialog; | 4607 PidginMiniDialog *mini_dialog; |
4616 | 4608 |
4617 if(priv->signed_on_elsewhere) | 4609 if(priv->signed_on_elsewhere) |
4618 return; | 4610 return; |
4619 | 4611 |
4620 mini_dialog = priv->signed_on_elsewhere = | 4612 mini_dialog = priv->signed_on_elsewhere = |
4621 pidgin_mini_dialog_new(NULL, NULL, PIDGIN_STOCK_DISCONNECT); | 4613 pidgin_mini_dialog_new(_("Welcome back!"), NULL, PIDGIN_STOCK_DISCONNECT); |
4622 | 4614 |
4623 pidgin_mini_dialog_add_button(mini_dialog, _("Re-enable"), | 4615 pidgin_mini_dialog_add_button(mini_dialog, _("Re-enable"), |
4624 reconnect_elsewhere_accounts, NULL); | 4616 reconnect_elsewhere_accounts, NULL); |
4625 | |
4626 pidgin_mini_dialog_add_button(mini_dialog, _("Ignore"), | |
4627 ignore_elsewhere_accounts, NULL); | |
4628 | 4617 |
4629 add_error_dialog(gtkblist, GTK_WIDGET(mini_dialog)); | 4618 add_error_dialog(gtkblist, GTK_WIDGET(mini_dialog)); |
4630 | 4619 |
4631 /* Set priv->signed_on_elsewhere to NULL when the dialog is destroyed */ | 4620 /* Set priv->signed_on_elsewhere to NULL when the dialog is destroyed */ |
4632 g_signal_connect(G_OBJECT(mini_dialog), "destroy", | 4621 g_signal_connect(G_OBJECT(mini_dialog), "destroy", |
4649 gtk_widget_destroy(GTK_WIDGET(mini_dialog)); | 4638 gtk_widget_destroy(GTK_WIDGET(mini_dialog)); |
4650 return; | 4639 return; |
4651 } | 4640 } |
4652 | 4641 |
4653 title = g_strdup_printf( | 4642 title = g_strdup_printf( |
4654 ngettext("%d account was disabled because you signed on from another location.", | 4643 ngettext("%d account was disabled because you signed on from another location:", |
4655 "%d accounts were disabled because you signed on from another location.", | 4644 "%d accounts were disabled because you signed on from another location:", |
4656 accounts), | 4645 accounts), |
4657 accounts); | 4646 accounts); |
4658 pidgin_mini_dialog_set_title(mini_dialog, title); | 4647 pidgin_mini_dialog_set_description(mini_dialog, title); |
4659 g_free(title); | 4648 g_free(title); |
4660 } | 4649 } |
4661 | 4650 |
4662 static GtkWidget * | 4651 static GtkWidget * |
4663 create_account_label(PurpleAccount *account) | 4652 create_account_label(PurpleAccount *account) |