From 9f37d3bd9a7f32dd12f05cb6503997dcf6ea9dff Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 17 Dec 2005 18:45:07 +0000 Subject: junk-settings.c proxy-login.c proxy.c Construct glade file name at 2005-12-17 Tor Lillqvist * junk-settings.c * proxy-login.c * proxy.c * share-folder.c: Construct glade file name at run-time. * process-meeting.c (find_attendee): Use g_ascii_strcasecmp() instead of g_strcasecmp(). svn path=/trunk/; revision=30844 --- plugins/groupwise-features/proxy.c | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'plugins/groupwise-features/proxy.c') diff --git a/plugins/groupwise-features/proxy.c b/plugins/groupwise-features/proxy.c index f896e6686e..db1f2d6199 100644 --- a/plugins/groupwise-features/proxy.c +++ b/plugins/groupwise-features/proxy.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -648,6 +649,7 @@ org_gnome_proxy (EPlugin *epl, EConfigHookItemFactoryData *data) CamelOfflineStore *store; CamelException ex; int pag_num; + char *gladefile; target_account = (EMConfigTargetAccount *)data->config->target; account = target_account->account; @@ -663,7 +665,12 @@ org_gnome_proxy (EPlugin *epl, EConfigHookItemFactoryData *data) prd = proxy_dialog_new (); g_object_set_data_full ((GObject *) account, "prd", prd, (GDestroyNotify) g_object_unref); priv = prd->priv; - priv->xml_tab = glade_xml_new (EVOLUTION_GLADEDIR "/proxy-listing.glade", "proxy_vbox", NULL); + + gladefile = g_build_filename (EVOLUTION_GLADEDIR, + "proxy-listing.glade", + NULL); + priv->xml_tab = glade_xml_new (gladefile, "proxy_vbox", NULL); + g_free (gladefile); if (account->enabled && (store->state == CAMEL_OFFLINE_STORE_NETWORK_AVAIL)) { priv->tab_dialog = GTK_WIDGET (glade_xml_get_widget (priv->xml_tab, "proxy_vbox")); @@ -872,10 +879,17 @@ proxy_add_account (GtkWidget *button, EAccount *account) ENameSelectorEntry *name_selector_entry; GtkWidget *proxy_name, *name_box; proxyDialog *prd = NULL; + char *gladefile; prd = g_object_get_data ((GObject *)account, "prd"); priv = prd->priv; - priv->xml = glade_xml_new (EVOLUTION_GLADEDIR "/proxy-add-dialog.glade", NULL, NULL); + + gladefile = g_build_filename (EVOLUTION_GLADEDIR, + "proxy-add-dialog.glade", + NULL); + priv->xml = glade_xml_new (gladefile, NULL, NULL); + g_free (gladefile); + proxy_dialog_initialize_widgets (account); priv->main = glade_xml_get_widget (priv->xml, "ProxyAccessRights"); okButton = (GtkButton *) glade_xml_get_widget (priv->xml,"proxy_button_ok"); @@ -966,6 +980,7 @@ proxy_edit_account (GtkWidget *button, EAccount *account) char *account_mailid; GtkWidget *contacts; proxyDialog *prd = NULL; + char *gladefile; prd = g_object_get_data ((GObject *)account, "prd"); priv = prd->priv; @@ -979,7 +994,12 @@ proxy_edit_account (GtkWidget *button, EAccount *account) account_mailid = g_strrstr (account_mailid, "\n") + 1; edited = proxy_get_item_from_list (account, account_mailid); if (edited) { - priv->xml = glade_xml_new (EVOLUTION_GLADEDIR "/proxy-add-dialog.glade", NULL, NULL); + gladefile = g_build_filename (EVOLUTION_GLADEDIR, + "proxy-add-dialog.glade", + NULL); + priv->xml = glade_xml_new (gladefile, NULL, NULL); + g_free (gladefile); + priv->main = glade_xml_get_widget (priv->xml, "ProxyAccessRights"); proxy_dialog_initialize_widgets (account); okButton = (GtkButton *) glade_xml_get_widget (priv->xml,"proxy_button_ok"); -- cgit v1.2.3