[evolution-rss] code cleanups



commit e1ff143baadda76435f1ed3feb92fc6643b37c12
Author: Lucian Langa <lucilanga gnome org>
Date:   Wed Nov 3 23:38:24 2010 +0200

    code cleanups

 src/network-soup.c |    4 ++--
 src/notification.c |    6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/network-soup.c b/src/network-soup.c
index 2ad28bc..bdeb362 100644
--- a/src/network-soup.c
+++ b/src/network-soup.c
@@ -292,8 +292,8 @@ proxify_session(EProxy *proxy, SoupSession *session, gchar *uri)
 
 #ifdef HAVE_LIBSOUP_GNOME
 	case 0:
-			soup_session_add_feature_by_type (
-				session, SOUP_TYPE_PROXY_RESOLVER_GNOME);
+		soup_session_add_feature_by_type (
+			session, SOUP_TYPE_PROXY_RESOLVER_GNOME);
 		break;
 #endif
 	}
diff --git a/src/notification.c b/src/notification.c
index f32dd5a..79777f2 100644
--- a/src/notification.c
+++ b/src/notification.c
@@ -57,12 +57,12 @@ err_destroy (GtkWidget *widget, guint response, gpointer data)
 void
 rss_error(gpointer key, gchar *name, gchar *error, gchar *emsg)
 {
-	GtkWidget *ed;
+	GtkWidget *ed = NULL;
 	gchar *msg;
 	gpointer newkey;
 #if (EVOLUTION_VERSION >= 22900) //kb//
 	EShell *shell;
-	EShellBackend *backend;
+	EMailBackend *backend;
 	GtkWindow *parent;
 	GList *windows;
 #else
@@ -83,7 +83,7 @@ rss_error(gpointer key, gchar *name, gchar *error, gchar *emsg)
 			parent = (windows != NULL) ? GTK_WINDOW (windows->data) : NULL;
 
 #if (EVOLUTION_VERSION >= 29102)
-			backend = e_shell_get_backend_by_name (shell, "mail");
+			backend = (EMailBackend *)e_shell_get_backend_by_name (shell, "mail");
 			e_mail_backend_submit_alert (
 				backend, "org-gnome-evolution-rss:feederr",
 				error, msg, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]