ekiga r7711 - trunk/lib/engine/plugin



Author: jpuydt
Date: Tue Mar  3 19:52:10 2009
New Revision: 7711
URL: http://svn.gnome.org/viewvc/ekiga?rev=7711&view=rev

Log:
Named the default plugin "ekiga_test" instead of "hello", and made its loading portable

Modified:
   trunk/lib/engine/plugin/plugin-core.cpp

Modified: trunk/lib/engine/plugin/plugin-core.cpp
==============================================================================
--- trunk/lib/engine/plugin/plugin-core.cpp	(original)
+++ trunk/lib/engine/plugin/plugin-core.cpp	Tue Mar  3 19:52:10 2009
@@ -57,9 +57,13 @@
 void
 plugin_init (Ekiga::KickStart& kickstart)
 {
-  std::cout << "Trying to load the hello plugin... ";
+  std::cout << "Trying to load the ekiga test plugin... ";
+  gchar* filename = g_build_filename (g_get_tmp_dir (),
+				      "ekiga_test",
+				      NULL);
+  GModule* plugin = g_module_open (filename, G_MODULE_BIND_LOCAL);
 
-  GModule* plugin = g_module_open ("/tmp/hello.so", G_MODULE_BIND_LOCAL);
+  g_free (filename);
 
   if (plugin != 0) {
 



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