evolution-rss r113 - in trunk: . src



Author: lucilanga
Date: Mon Jan 14 20:11:20 2008
New Revision: 113
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=113&view=rev

Log:
proxify fix and fraction issues

Modified:
   trunk/ChangeLog
   trunk/src/network-soup.c
   trunk/src/rss.c

Modified: trunk/src/network-soup.c
==============================================================================
--- trunk/src/network-soup.c	(original)
+++ trunk/src/network-soup.c	Mon Jan 14 20:11:20 2008
@@ -138,7 +138,7 @@
 proxyfy_session(SoupSession *session)
 {
 	gboolean use_proxy =
-        gconf_client_get_bool(rss_gconf, GCONF_KEY_USE_PROXY, NULL);
+       	gconf_client_get_bool(rss_gconf, GCONF_KEY_USE_PROXY, NULL);
     gint port_proxy =
         gconf_client_get_int(rss_gconf, GCONF_KEY_PORT_PROXY, NULL);
     gchar *host_proxy =
@@ -157,11 +157,11 @@
             g_strdup_printf("http://%s:%d/";, host_proxy, port_proxy); 
 
         SoupUri *puri = soup_uri_new (proxy_uri);
-		if (auth_proxy)
-		{
-			puri->user = g_strdup(user_proxy);
-			puri->passwd = g_strdup(pass_proxy);
-		}
+	if (auth_proxy)
+	{
+		puri->user = g_strdup(user_proxy);
+		puri->passwd = g_strdup(pass_proxy);
+	}
         g_object_set (G_OBJECT (session), SOUP_SESSION_PROXY_URI, puri, NULL);
         if (puri)
             g_free(puri);
@@ -314,7 +314,7 @@
 //		soup_session_async_new_with_options(SOUP_SESSION_TIMEOUT, SS_TIMEOUT, NULL);
 		soup_session_async_new();
 			
-//	proxyfy_session(soup_sess);
+	proxyfy_session(soup_sess);
 	info = g_new0(CallbackInfo, 1);
 	info->user_cb = cb;
 	info->user_data = data;

Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c	(original)
+++ trunk/src/rss.c	Mon Jan 14 20:11:20 2008
@@ -395,7 +395,7 @@
 }
 
 void
-taskbar_op_set_progress(gpointer key, double progress)
+taskbar_op_set_progress(gpointer key, gdouble progress)
 {
 	EActivityHandler *activity_handler = mail_component_peek_activity_handler (mail_component_peek ());
 	guint activity_id = g_hash_table_lookup(rf->activity, key);
@@ -417,6 +417,8 @@
 
         	activity_info = (ActivityInfo *) p->data;
 
+		g_print("fraction:%f\n", progress);
+
 		e_activity_handler_operation_progressing(activity_handler,
 				activity_id,
                                 g_strdup(activity_info->information), 
@@ -483,7 +485,8 @@
 			g_free(furl);
 		}
 #endif
-		taskbar_op_set_progress(data, fraction);
+//		taskbar_op_set_progress(data, (guint)fraction);
+		taskbar_op_set_progress(data, fraction/100);
         }
         break;
     case NET_STATUS_DONE:



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