[evolution] Handle CAMEL_PROVIDER_CONF_LABEL option
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Handle CAMEL_PROVIDER_CONF_LABEL option
- Date: Tue, 29 Nov 2016 18:17:33 +0000 (UTC)
commit 809198db65d83ee50a9be646114378c0bdf86584
Author: Milan Crha <mcrha redhat com>
Date: Tue Nov 29 19:16:07 2016 +0100
Handle CAMEL_PROVIDER_CONF_LABEL option
Required for the change for bug 774666
src/mail/e-mail-config-provider-page.c | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/src/mail/e-mail-config-provider-page.c b/src/mail/e-mail-config-provider-page.c
index 4b82c73..efd0781 100644
--- a/src/mail/e-mail-config-provider-page.c
+++ b/src/mail/e-mail-config-provider-page.c
@@ -359,6 +359,29 @@ mail_config_provider_page_add_entry (EMailConfigProviderPage *page,
}
static void
+mail_config_provider_page_add_label (EMailConfigProviderPage *page,
+ CamelProviderConfEntry *entry)
+{
+ GtkWidget *hbox;
+ GtkWidget *label;
+
+ g_return_if_fail (entry->text != NULL);
+
+ hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+ gtk_box_set_spacing (GTK_BOX (hbox), 6);
+ gtk_widget_set_margin_left (hbox, STANDARD_MARGIN);
+ gtk_box_pack_start (GTK_BOX (page), hbox, FALSE, FALSE, 0);
+ gtk_widget_show (hbox);
+
+ label = gtk_label_new (entry->text);
+ gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+ gtk_widget_show (label);
+
+ mail_config_provider_page_handle_dependency (page, entry, hbox);
+}
+
+static void
mail_config_provider_page_add_options (EMailConfigProviderPage *page,
CamelProviderConfEntry *entry)
{
@@ -566,6 +589,11 @@ mail_config_provider_page_add_widgets (EMailConfigProviderPage *page)
page, &entries[ii]);
break;
+ case CAMEL_PROVIDER_CONF_LABEL:
+ mail_config_provider_page_add_label (
+ page, &entries[ii]);
+ break;
+
case CAMEL_PROVIDER_CONF_OPTIONS:
mail_config_provider_page_add_options (
page, &entries[ii]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]