anjuta r4659 - in trunk: . libanjuta



Author: sgranjoux
Date: Sat Jan 31 21:35:10 2009
New Revision: 4659
URL: http://svn.gnome.org/viewvc/anjuta?rev=4659&view=rev

Log:
	* libanjuta/anjuta-plugin-manager.c:
	Fix #567846 â A lot of g_warning-s when starting up Anjuta


Modified:
   trunk/ChangeLog
   trunk/libanjuta/anjuta-plugin-manager.c

Modified: trunk/libanjuta/anjuta-plugin-manager.c
==============================================================================
--- trunk/libanjuta/anjuta-plugin-manager.c	(original)
+++ trunk/libanjuta/anjuta-plugin-manager.c	Sat Jan 31 21:35:10 2009
@@ -1431,8 +1431,7 @@
  * Searches the currently available plugins to find the one which
  * implements the given interface as primary interface and returns it. If
  * the plugin is not yet loaded, it will be loaded and activated.
- * The returned object is garanteed to be an implementor of the
- * interface (as exported by the plugin metafile). It only searches
+ * It only searches
  * from the pool of plugin objects loaded in this shell and can only search
  * by primary interface. If there are more objects implementing this primary
  * interface, user might be prompted to select one from them (and might give
@@ -1444,9 +1443,10 @@
  * </programlisting>
  * Notice that this function takes the interface name string as string, unlike
  * anjuta_plugins_get_interface() which takes the type directly.
+ * If no plugin implementing this interface can be found, returns NULL.
  *
  * Return value: The plugin object (subclass of #AnjutaPlugin) which implements
- * the given interface. See #AnjutaPlugin for more detail on interfaces
+ * the given interface or NULL. See #AnjutaPlugin for more detail on interfaces
  * implemented by plugins.
  */
 GObject *
@@ -1513,7 +1513,6 @@
 	}
 	
 	/* No plugin implementing this interface found */
-	g_warning ("No plugin found implementing %s Interface.", iface_name);
 	return NULL;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]