[libpeas] Fix several warnings in peas-engine.c
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix several warnings in peas-engine.c
- Date: Mon, 4 Oct 2010 08:45:09 +0000 (UTC)
commit b2b6deb735df82e2f158d93c72a3cb404ac78fb8
Author: Steve Frécinaux <code istique net>
Date: Mon Oct 4 10:30:22 2010 +0200
Fix several warnings in peas-engine.c
docs/reference/libpeas-sections.txt | 2 +-
libpeas/peas-engine.c | 4 ++--
libpeas/peas-engine.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/docs/reference/libpeas-sections.txt b/docs/reference/libpeas-sections.txt
index 1b954e4..a001a16 100644
--- a/docs/reference/libpeas-sections.txt
+++ b/docs/reference/libpeas-sections.txt
@@ -61,7 +61,7 @@ PeasGtkPluginManagerViewPrivate
<TITLE>PeasEngine</TITLE>
PeasEngine
PeasEngineClass
-peas_engine_new
+peas_engine_get_default
peas_engine_add_search_path
peas_engine_rescan_plugins
peas_engine_get_plugin_list
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 6a0de42..1982dbd 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -297,7 +297,7 @@ peas_engine_init (PeasEngine *engine)
* We only allow one single instance of a PeasEngine subclass. */
g_assert (default_engine == NULL);
default_engine = engine;
- g_object_add_weak_pointer (engine, &default_engine);
+ g_object_add_weak_pointer (G_OBJECT (engine), (gpointer *) &default_engine);
if (!g_module_supported ())
{
@@ -1107,7 +1107,7 @@ peas_engine_set_loaded_plugins (PeasEngine *engine,
* If no #PeasEngine subclass has been instantiated yet, the first call
* of this function will return a new instance of #PeasEngine.
*
- * Returns: the existing instance of #PeasEngine.
+ * Returns: (transfer none): the existing instance of #PeasEngine.
*/
PeasEngine *
peas_engine_get_default (void)
diff --git a/libpeas/peas-engine.h b/libpeas/peas-engine.h
index eac4d0a..df56800 100644
--- a/libpeas/peas-engine.h
+++ b/libpeas/peas-engine.h
@@ -71,7 +71,7 @@ GType peas_engine_get_type (void) G_GNUC_CONST;
PeasEngine *peas_engine_get_default (void);
void peas_engine_add_search_path (PeasEngine *engine,
- const gchar *plugin_dir,
+ const gchar *module_dir,
const gchar *data_dir);
/* plugin management */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]