diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-07-26 11:13:29 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-07-26 11:13:29 +0800 |
commit | bb86fd83943d1a88ee921cf746f720dfbc08a4b3 (patch) | |
tree | 8318cb093c56b5a3cd5c85ae993eef8e9ab1fe6b | |
parent | b9006f61327b6185a243eb3b0a0a8e0631588a23 (diff) | |
download | gsoc2013-evolution-bb86fd83943d1a88ee921cf746f720dfbc08a4b3.tar.gz 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
-rw-r--r-- | mail/ChangeLog | 4 | ||||
-rw-r--r-- | mail/mail-account-gui.h | 6 | ||||
-rw-r--r-- | mail/mail-config-druid.c | 21 |
3 files changed, 20 insertions, 11 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 73e03d7740..16cdd31de4 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,9 @@ 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. + * mail-callbacks.c (composer_send_cb): Make sure that the url isn't an empty string and also make sure to free it when we're done with it. Also check that we got the folder - if it is NULL, diff --git a/mail/mail-account-gui.h b/mail/mail-account-gui.h index f378cc63f5..76557c0781 100644 --- a/mail/mail-account-gui.h +++ b/mail/mail-account-gui.h @@ -68,13 +68,13 @@ typedef struct { GtkEntry *email_address; GtkEntry *reply_to; GtkEntry *organization; - + /* signatures */ GtkWidget *sig_option_menu; - + MailConfigSignature *def_signature; gboolean auto_signature; - + /* incoming mail */ MailAccountGuiService source; GtkToggleButton *source_auto_check; 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; } |