gchar *camel_tmpdir;
CamelSession *camel_session;
- GdaEx *gdaex;
-
gchar *guidir;
gchar *guifile;
GtkBuilder *gtkbuilder;
gsize n_params;
gchar *cnc_string;
- GdaEx *gdaex;
g_return_if_fail (IS_SOLIPA (solipa));
g_return_if_fail (filename == NULL);
return;
}
g_error_free (error);
-
- /* db params */
- error = NULL;
- cnc_string = g_key_file_get_value (config, "SOLIPA_DB", "cnc_string", &error);
- if (cnc_string == NULL)
- {
- g_warning ("Error on loading solipa db config from file «%s»: %s.",
- error != NULL && error->message != NULL ? error->message : "no details");
- return;
- }
-
- gdaex = gdaex_new_from_string (cnc_string);
- if (gdaex == NULL)
- {
- g_warning ("Error on database connection with string: %s", cnc_string);
- }
- solipa_set_gdaex (solipa, gdaex);
-
- g_error_free (error);
}
CamelSession
return priv->camel_session;
}
+G_DEPRECATED
void
solipa_set_gdaex (Solipa *solipa, GdaEx *gdaex)
{
- SolipaPrivate *priv;
-
- g_return_if_fail (IS_SOLIPA (solipa));
- g_return_if_fail (IS_GDAEX (gdaex));
-
- priv = SOLIPA_GET_PRIVATE (solipa);
-
- priv->gdaex = gdaex;
}
+G_DEPRECATED
GdaEx
*solipa_get_gdaex (Solipa *solipa)
{
- SolipaPrivate *priv;
-
- g_return_val_if_fail (IS_SOLIPA (solipa), NULL);
-
- priv = SOLIPA_GET_PRIVATE (solipa);
-
- return priv->gdaex;
+ return NULL;
}
const gchar
Solipa *solipa = (Solipa *)gobject;
SolipaPrivate *priv = SOLIPA_GET_PRIVATE (solipa);
- if (priv->gdaex)
- {
- g_object_unref (priv->gdaex);
- priv->gdaex = NULL;
- }
-
if (priv->gtkbuilder)
{
g_object_unref (priv->gtkbuilder);
/*
- * Copyright (C) 2010-2011 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2010-2015 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
#include <camel/camel.h>
-#include <libgdaex/libgdaex.h>
-
G_BEGIN_DECLS
CamelSession *solipa_get_camel_session (Solipa *solipa);
+G_DEPRECATED
void solipa_set_gdaex (Solipa *solipa, GdaEx *gdaex);
+G_DEPRECATED
GdaEx *solipa_get_gdaex (Solipa *solipa);
const gchar *solipa_get_guifile (Solipa *solipa);