aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-account-editor-news.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@src.gnome.org>2002-04-14 11:25:29 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-04-14 11:25:29 +0800
commit2337f88f58f539528d3be11278f3fd9927a0bec5 (patch)
tree1ff2087c79b6839143d2e12b1d4b788e3c2bc1b6 /mail/mail-account-editor-news.c
parentf1d41196e77e28d7b45fa783e601e35377bd5f55 (diff)
downloadgsoc2013-evolution-2337f88f58f539528d3be11278f3fd9927a0bec5.tar.gz
gsoc2013-evolution-2337f88f58f539528d3be11278f3fd9927a0bec5.tar.zst
gsoc2013-evolution-2337f88f58f539528d3be11278f3fd9927a0bec5.zip
compile fixes
svn path=/trunk/; revision=16461
Diffstat (limited to 'mail/mail-account-editor-news.c')
-rw-r--r--mail/mail-account-editor-news.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/mail/mail-account-editor-news.c b/mail/mail-account-editor-news.c
index 34aeea247a..2b5d80f785 100644
--- a/mail/mail-account-editor-news.c
+++ b/mail/mail-account-editor-news.c
@@ -141,21 +141,21 @@ cancel_clicked (GtkWidget *widget, gpointer data)
gtk_widget_destroy (GTK_WIDGET (editor));
}
-MailAccountEditorNews *
+GtkWidget *
mail_account_editor_news_new (MailConfigService *service)
{
MailAccountEditorNews *editor;
GtkEntry *service_ent;
editor = (MailAccountEditorNews *) gtk_type_new (mail_account_editor_news_get_type ());
-
+
editor->service = service;
editor->xml = glade_xml_new (EVOLUTION_GLADEDIR "/mail-config.glade", NULL);
-
+
/* get our toplevel widget and reparent it */
editor->notebook = GTK_NOTEBOOK (glade_xml_get_widget (editor->xml, "news_editor_notebook"));
gtk_widget_reparent (GTK_WIDGET (editor->notebook), GNOME_DIALOG (editor)->vbox);
-
+
/* give our dialog an OK button and title */
gtk_window_set_title (GTK_WINDOW (editor), _("Evolution News Editor"));
gtk_window_set_policy (GTK_WINDOW (editor), FALSE, TRUE, TRUE);
@@ -165,7 +165,7 @@ mail_account_editor_news_new (MailConfigService *service)
GNOME_STOCK_BUTTON_APPLY,
GNOME_STOCK_BUTTON_CANCEL,
NULL);
-
+
gnome_dialog_button_connect (GNOME_DIALOG (editor), 0 /* OK */,
GTK_SIGNAL_FUNC (ok_clicked),
editor);
@@ -175,19 +175,19 @@ mail_account_editor_news_new (MailConfigService *service)
gnome_dialog_button_connect (GNOME_DIALOG (editor), 2 /* CANCEL */,
GTK_SIGNAL_FUNC (cancel_clicked),
editor);
-
- if(service->url) {
+
+ if (service->url) {
CamelURL *url;
- url = camel_url_new(service->url, NULL);
+ url = camel_url_new (service->url, NULL);
- if(url->host) {
- service_ent = GTK_ENTRY(glade_xml_get_widget(editor->xml, "source_name"));
- gtk_entry_set_text(service_ent, url->host);
+ if (url->host) {
+ service_ent = GTK_ENTRY (glade_xml_get_widget (editor->xml, "source_name"));
+ gtk_entry_set_text (service_ent, url->host);
}
- camel_url_free(url);
+ camel_url_free (url);
}
-
- return editor;
+
+ return GTK_WIDGET (editor);
}