ekiga r6799 - in trunk: . lib/engine/framework
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r6799 - in trunk: . lib/engine/framework
- Date: Tue, 2 Sep 2008 15:17:57 +0000 (UTC)
Author: jpuydt
Date: Tue Sep 2 15:17:56 2008
New Revision: 6799
URL: http://svn.gnome.org/viewvc/ekiga?rev=6799&view=rev
Log:
Fixed #550273.
Modified:
trunk/ChangeLog
trunk/lib/engine/framework/services.cpp
trunk/lib/engine/framework/services.h
Modified: trunk/lib/engine/framework/services.cpp
==============================================================================
--- trunk/lib/engine/framework/services.cpp (original)
+++ trunk/lib/engine/framework/services.cpp Tue Sep 2 15:17:56 2008
@@ -45,11 +45,22 @@
delete *iter;
}
-void
+bool
Ekiga::ServiceCore::add (Service &service)
{
- services.push_front (&service);
- service_added (service);
+ bool result = false;
+
+ if (get (service.get_name ()) == NULL) {
+
+ services.push_front (&service);
+ service_added (service);
+ result = true;
+ } else {
+
+ result = false;
+ }
+
+ return result;
}
Ekiga::Service *
Modified: trunk/lib/engine/framework/services.h
==============================================================================
--- trunk/lib/engine/framework/services.h (original)
+++ trunk/lib/engine/framework/services.h Tue Sep 2 15:17:56 2008
@@ -73,7 +73,7 @@
~ServiceCore ();
- void add (Service &service);
+ bool add (Service &service);
Service *get (const std::string name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]