From: Andrea Zagli Date: Sun, 8 Aug 2010 09:58:55 +0000 (+0200) Subject: Added function Aute::get_management_gui. X-Git-Tag: 0.1.0^0 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=a13de718f1fc550f421175cd2d6b035bda35bec0;p=zakauthe%2Flibzakauthe Added function Aute::get_management_gui. --- diff --git a/configure.ac b/configure.ac index 5de6310..4546178 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.59) -AC_INIT([libaute], [0.0.2], [azagli@libero.it]) +AC_INIT([libaute], [0.1.0], [azagli@libero.it]) AC_CONFIG_SRCDIR([src/aute.c]) AC_CONFIG_HEADER([config.h]) @@ -24,7 +24,8 @@ have_libconfi=no PKG_CHECK_MODULES(LIBAUTE, [glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0 - gmodule-2.0 >= 2.10.0]) + gmodule-2.0 >= 2.10.0 + gtk+-2.0 >= 2.0.0]) AC_SUBST(LIBAUTE_CFLAGS) AC_SUBST(LIBAUTE_LIBS) diff --git a/docs/reference/libaute-decl-list.txt b/docs/reference/libaute-decl-list.txt index 7d74010..d88244f 100644 --- a/docs/reference/libaute-decl-list.txt +++ b/docs/reference/libaute-decl-list.txt @@ -1,16 +1,18 @@
libaute +Aute TYPE_AUTE AUTE AUTE_CLASS IS_AUTE IS_AUTE_CLASS AUTE_GET_CLASS -Aute Aute +AuteClass aute_get_type aute_new aute_set_config aute_autentica +aute_get_management_gui
diff --git a/docs/reference/libaute-decl.txt b/docs/reference/libaute-decl.txt index 2ba3cd9..d96718a 100644 --- a/docs/reference/libaute-decl.txt +++ b/docs/reference/libaute-decl.txt @@ -62,3 +62,8 @@ Aute *aute, GSList *parameters gchar * Aute *aute + +aute_get_management_gui +GtkWidget * +Aute *aute + diff --git a/docs/reference/libaute-undocumented.txt b/docs/reference/libaute-undocumented.txt index a738660..4df960a 100644 --- a/docs/reference/libaute-undocumented.txt +++ b/docs/reference/libaute-undocumented.txt @@ -1,10 +1,10 @@ 9% symbol docs coverage. 1 symbols documented. -0 symbols incomplete. +1 symbols incomplete. 10 not documented. -Aute +Aute () aute_autentica aute_destroy aute_get_plugin_module diff --git a/docs/reference/libaute-unused.txt b/docs/reference/libaute-unused.txt index 2f0d83c..961a81b 100644 --- a/docs/reference/libaute-unused.txt +++ b/docs/reference/libaute-unused.txt @@ -5,6 +5,7 @@ AuteClass IS_AUTE IS_AUTE_CLASS TYPE_AUTE +aute_get_management_gui aute_get_type aute_new aute_set_config diff --git a/docs/reference/tmpl/aute.sgml b/docs/reference/tmpl/aute.sgml index b6a4c4c..1efeb85 100644 --- a/docs/reference/tmpl/aute.sgml +++ b/docs/reference/tmpl/aute.sgml @@ -17,6 +17,9 @@ aute + + + diff --git a/docs/reference/tmpl/libaute.sgml b/docs/reference/tmpl/libaute.sgml index 685f23b..0d0e50d 100644 --- a/docs/reference/tmpl/libaute.sgml +++ b/docs/reference/tmpl/libaute.sgml @@ -17,6 +17,9 @@ libaute + + + diff --git a/src/aute.c b/src/aute.c index 6b7322e..ba8b6b4 100644 --- a/src/aute.c +++ b/src/aute.c @@ -147,9 +147,7 @@ aute_set_config (Aute *aute, GSList *parameters) /** * aute_autentica: - * @confi: un oggetto #Confi; se viene passato NULL verrà utilizzata la - * configurazione Default, letta dal database specificato in GConf dell'utente - * corrente. + * @aute: * * Returns: il nome utente se l'autenticazione va a buon fine; * stringa vuota ("") se viene premuto "Annulla"; NULL in caso di errore. @@ -170,7 +168,7 @@ gchar if (!g_module_symbol (priv->module, "autentica", (gpointer *)&autentica)) { /* TO DO */ - g_fprintf (stderr, "Error g_module_symbol\n"); + g_warning ("Error g_module_symbol\n"); return NULL; } @@ -180,6 +178,38 @@ gchar return ret; } +/** + * aute_autentica: + * @aute: + * + */ +GtkWidget +*aute_get_management_gui (Aute *aute) +{ + GtkWidget *(*get_management_gui) (GSList *parameters); + GtkWidget *ret; + + AutePrivate *priv = AUTE_GET_PRIVATE (aute); + + g_return_val_if_fail (priv->module != NULL, NULL); + + ret = NULL; + + /* loading the function */ + if (!g_module_symbol (priv->module, "get_management_gui", (gpointer *)&get_management_gui)) + { + /* TO DO */ + g_warning ("Error g_module_symbol\n"); + return NULL; + } + + /* calling plugin's function */ + ret = (*get_management_gui) (priv->parameters); + + return ret; + +} + /* PRIVATE */ static void aute_set_property (GObject *object, diff --git a/src/libaute.h b/src/libaute.h index 82a0f2a..bc3606c 100644 --- a/src/libaute.h +++ b/src/libaute.h @@ -22,6 +22,7 @@ #include #include #include +#include G_BEGIN_DECLS @@ -54,6 +55,8 @@ gboolean aute_set_config (Aute *aute, GSList *parameters); gchar *aute_autentica (Aute *aute); +GtkWidget *aute_get_management_gui (Aute *aute); + G_END_DECLS