aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/proxy-login.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-08-24 11:15:26 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-08-24 11:15:26 +0800
commitdb4eb8ad23b7601552cb73d88b4dbd04305b0006 (patch)
treee4eb8b41014e449b99a584e45f1ef35e3e448146 /plugins/groupwise-features/proxy-login.c
parentba263d1aceb348eb6a28bb6a07d3f2e9abc351a8 (diff)
downloadgsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.gz
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.bz2
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.lz
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.xz
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.tar.zst
gsoc2013-evolution-db4eb8ad23b7601552cb73d88b4dbd04305b0006.zip
return the right type. (proxy_soap_login): fix pointer cast.
2005-08-23 Not Zed <NotZed@Ximian.com> * proxy-login.c (proxy_get_password): return the right type. (proxy_soap_login): fix pointer cast. (proxy_login_add_new_store): fix pointer cast. (proxy_login_setup_tree_view): fix callback cast. (org_gnome_proxy_account_login): fix prototype to match use. * junk-settings.c (user_selected): fix calling. (junk_settings_construct): more stupid casts. * junk-mail-settings.c (junk_mail_settings): casts. * install-shared.c (install_folder_response): constify item_id. (install_folder_response): remove unused. (org_gnome_popup_wizard): fixed numerous problems with this, over-copying data around, not referencing information properly, freeing potentially unset variables, etc etc. (accept_free): add a free function. * share-folder.c (notification_clicked): fix a multitude of busted casts. (user_selected): fix broken calling conventions, busted style. (share_folder_construct): fix more busted/missing casts. * share-folder-common.c: add missing header. svn path=/trunk/; revision=30232
Diffstat (limited to 'plugins/groupwise-features/proxy-login.c')
-rw-r--r--plugins/groupwise-features/proxy-login.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/plugins/groupwise-features/proxy-login.c b/plugins/groupwise-features/proxy-login.c
index 57970ea171..079b618c1e 100644
--- a/plugins/groupwise-features/proxy-login.c
+++ b/plugins/groupwise-features/proxy-login.c
@@ -61,15 +61,13 @@
#include <e-gw-connection.h>
#include <e-gw-message.h>
#include <libedataserverui/e-name-selector.h>
-#include <proxy-login.h>
+#include "proxy-login.h"
#define GW(name) glade_xml_get_widget (priv->xml, name)
#define ACCOUNT_PICTURE 0
#define ACCOUNT_NAME 1
-void org_gnome_proxy_account_login (EPopup *ep, EPopupItem *p, char *uri);
-
proxyLogin *pld = NULL;
static GObjectClass *parent_class = NULL;
@@ -198,11 +196,11 @@ proxy_get_password (EAccount *account, char **user_name, char **password)
url = camel_url_new (account->source->url, NULL);
if (url == NULL)
- return NULL;
+ return 0;
*user_name = g_strdup (url->user);
poa_address = url->host;
if (!poa_address || strlen (poa_address) ==0)
- return NULL;
+ return 0;
soap_port = camel_url_get_param (url, "soap_port");
if (!soap_port || strlen (soap_port) == 0)
@@ -354,7 +352,7 @@ proxy_soap_login (char *email)
e_account_list_add(accounts, dstAccount);
e_account_list_change (accounts, srcAccount);
e_account_list_save(accounts);
- g_object_set_data ((GObject *)dstAccount, "permissions", permissions);
+ g_object_set_data ((GObject *)dstAccount, "permissions", GINT_TO_POINTER(permissions));
mail_get_store(e_account_get_string(dstAccount, E_ACCOUNT_SOURCE_URL), NULL, proxy_login_add_new_store, dstAccount);
g_free (proxy_source_url);
@@ -376,7 +374,7 @@ proxy_login_add_new_store (char *uri, CamelStore *store, void *user_data)
{
MailComponent *component = mail_component_peek ();
EAccount *account = user_data;
- int permissions = g_object_get_data ((GObject *)account, "permissions");
+ int permissions = GPOINTER_TO_INT(g_object_get_data ((GObject *)account, "permissions"));
if (store == NULL)
return;
@@ -427,7 +425,7 @@ proxy_login_setup_tree_view (void)
gtk_tree_view_set_model (priv->tree, GTK_TREE_MODEL (priv->store));
selection = gtk_tree_view_get_selection (priv->tree);
gtk_tree_selection_set_mode (selection, GTK_SELECTION_BROWSE);
- g_signal_connect (G_OBJECT (selection), "changed", proxy_login_tree_view_changed_cb, NULL);
+ g_signal_connect (G_OBJECT (selection), "changed", G_CALLBACK(proxy_login_tree_view_changed_cb), NULL);
}
static void
@@ -461,8 +459,9 @@ proxy_login_update_tree (void)
}
void
-org_gnome_proxy_account_login (EPopup *ep, EPopupItem *p, char *uri)
+org_gnome_proxy_account_login (EPopup *ep, EPopupItem *p, void *data)
{
+ char *uri = data;
proxyLoginPrivate *priv;
pld = proxy_login_new();