evolution-rss r141 - trunk/src
- From: lucilanga svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-rss r141 - trunk/src
- Date: Fri, 1 Feb 2008 06:45:35 +0000 (GMT)
Author: lucilanga
Date: Fri Feb 1 06:45:35 2008
New Revision: 141
URL: http://svn.gnome.org/viewvc/evolution-rss?rev=141&view=rev
Log:
proxy auth
Modified:
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 Fri Feb 1 06:45:35 2008
@@ -170,6 +170,8 @@
puri->user = g_strdup(user_proxy);
puri->passwd = g_strdup(pass_proxy);
}
+ g_print("user:%s\n", user_proxy);
+ g_print("pass:%s\n", pass_proxy);
g_object_set (G_OBJECT (session), SOUP_SESSION_PROXY_URI, puri, NULL);
if (puri)
g_free(puri);
@@ -286,13 +288,15 @@
else
{
if (!read_up(data))
-/* if (create_user_pass_dialog(data))
+ if (create_user_pass_dialog(data))
rf->soup_auth_retry = FALSE;
else
- rf->soup_auth_retry = TRUE;*/
+ rf->soup_auth_retry = TRUE;
user = g_hash_table_lookup(rf->hruser, data);
pass = g_hash_table_lookup(rf->hrpass, data);
+ g_print("user:%s\n", user);
+ g_print("pass:%s\n", pass);
*username = g_strdup(user);
*password = g_strdup(pass);
}
@@ -308,6 +312,8 @@
char **password,
gpointer data)
{
+ gchar *user, *pass;
+ g_print("status:%d\n", msg->status);
g_print("authtype:%s\n", auth_type);
if (rf->soup_auth_retry)
{
@@ -315,11 +321,23 @@
//won't try again
rf->soup_auth_retry = FALSE;
if (create_user_pass_dialog(data))
+ {
rf->soup_auth_retry = FALSE;
+ user = g_hash_table_lookup(rf->hruser, data);
+ pass = g_hash_table_lookup(rf->hrpass, data);
+ }
else
+ {
rf->soup_auth_retry = TRUE;
- *username = g_strdup(g_hash_table_lookup(rf->hruser, data));
- *password = g_strdup(g_hash_table_lookup(rf->hrpass, data));
+ user = g_hash_table_lookup(rf->hruser, data);
+ pass = g_hash_table_lookup(rf->hrpass, data);
+ }
+ g_print("user:%s\n", user);
+ g_print("pass:%s\n", pass);
+ *username = g_strdup(user);
+ *password = g_strdup(pass);
+// *username = g_strdup(g_hash_table_lookup(rf->hruser, data));
+ // *password = g_strdup(g_hash_table_lookup(rf->hrpass, data));
}
}
Modified: trunk/src/rss.c
==============================================================================
--- trunk/src/rss.c (original)
+++ trunk/src/rss.c Fri Feb 1 06:45:35 2008
@@ -47,6 +47,9 @@
#include <mail/em-folder-utils.h>
#include <mail/em-folder-view.h>
#include <mail/mail-mt.h>
+//////////////////////////////////
+#include <mail/mail-component.h>
+//////////////////////////////////
#include <misc/e-activity-handler.h>
@@ -1333,6 +1336,22 @@
g_free(real_name);
}
+void
+get_selected_mail(void)
+{
+ MailComponent *mail_component = mail_component_peek();
+ MailComponentPrivate *priv = mail_component->priv;
+ EComponentView *cv = priv->component_view;
+ g_print("priv:%p", priv);
+ g_print("cv:%p", cv);
+ GPtrArray *uids;
+ void *el = g_object_get_data((GObject *)cv, "info-label");
+ EMFolderView *emfv = g_object_get_data((GObject *)el, "folderview");
+ uids = message_list_get_selected(emfv->list);
+ g_print("%d", uids->len);
+
+}
+
GtkWidget*
remove_feed_dialog(gchar *msg)
{
@@ -3701,6 +3720,7 @@
if (!deleted)
if (g_hash_table_lookup(rf->hrdel_feed, lookup_key(user_data)))
get_feed_age(user_data, lookup_key(user_data));
+// get_selected_mail();
//tout:
#ifdef EVOLUTION_2_12
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]