aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config-druid.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-26 11:13:29 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-26 11:13:29 +0800
commitbb86fd83943d1a88ee921cf746f720dfbc08a4b3 (patch)
tree8318cb093c56b5a3cd5c85ae993eef8e9ab1fe6b /mail/mail-config-druid.c
parentb9006f61327b6185a243eb3b0a0a8e0631588a23 (diff)
downloadgsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.tar
gsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.tar.gz
gsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.tar.bz2
gsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.tar.lz
gsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.tar.xz
gsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.tar.zst
gsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.zip
Make the gtk label line-wrap instead of us forcing \n's in the label, that
2002-07-25 Jeffrey Stedfast <fejj@ximian.com> * mail-config-druid.c (create_label): Make the gtk label line-wrap instead of us forcing \n's in the label, that was just wrong. Fixes bug #10320. svn path=/trunk/; revision=17598
Diffstat (limited to 'mail/mail-config-druid.c')
-rw-r--r--mail/mail-config-druid.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/mail/mail-config-druid.c b/mail/mail-config-druid.c
index 389be8fba8..39bf2f4f14 100644
--- a/mail/mail-config-druid.c
+++ b/mail/mail-config-druid.c
@@ -143,15 +143,15 @@ static struct {
char *text;
} info[] = {
{ "identity_html",
- N_("Please enter your name and email address below. The \"optional\" fields below do not need to be filled in,\nunless you wish to include this information in email you send.") },
+ N_("Please enter your name and email address below. The \"optional\" fields below do not need to be filled in, unless you wish to include this information in email you send.") },
{ "source_html",
- N_("Please enter information about your incoming mail server below. If you are not sure, ask your system\nadministrator or Internet Service Provider.") },
+ N_("Please enter information about your incoming mail server below. If you are not sure, ask your system administrator or Internet Service Provider.") },
{ "extra_html",
N_("Please select among the following options") },
{ "transport_html",
- N_("Please enter information about the way you will send mail. If you are not sure, ask your system\nadministrator or Internet Service Provider.") },
+ N_("Please enter information about the way you will send mail. If you are not sure, ask your system administrator or Internet Service Provider.") },
{ "management_html",
- N_("You are almost done with the mail configuration process. The identity, incoming mail server and\noutgoing mail transport method which you provided will be grouped together to\nmake an Evolution mail account. Please enter a name for this account in the space below.\nThis name will be used for display purposes only.") }
+ N_("You are almost done with the mail configuration process. The identity, incoming mail server and outgoing mail transport method which you provided will be grouped together to make an Evolution mail account. Please enter a name for this account in the space below. This name will be used for display purposes only.") }
};
static int num_info = (sizeof (info) / sizeof (info[0]));
@@ -160,19 +160,24 @@ create_label (const char *name)
{
GtkWidget *widget, *align;
int i;
-
+
for (i = 0; i < num_info; i++) {
if (!strcmp (name, info[i].name))
break;
}
+
g_return_val_if_fail (i != num_info, NULL);
widget = gtk_label_new (_(info[i].text));
-
+ gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
+ gtk_label_set_justify (GTK_LABEL (widget), GTK_JUSTIFY_FILL);
+ gtk_widget_show (widget);
+
align = gtk_alignment_new (0.0, 0.5, 1.0, 1.0);
gtk_container_add (GTK_CONTAINER (align), widget);
-
- gtk_widget_show_all (align);
+
+ gtk_widget_show (align);
+
return align;
}