[ekiga/gnome-2-26] Fixed compilation problems in resource-list code



commit 7f2235c570e6be8d6ac708d308440498b97060a7
Author: Julien Puydt <jpuydt src gnome org>
Date:   Tue Mar 17 20:28:41 2009 +0000

    Fixed compilation problems in resource-list code
    
    svn path=/trunk/; revision=7784
---
 .../components/resource-list/rl-entry-ref.cpp      |    5 +++--
 lib/engine/components/resource-list/rl-entry.cpp   |    5 +++--
 lib/engine/components/resource-list/rl-list.cpp    |   12 ++++++++----
 3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/lib/engine/components/resource-list/rl-entry-ref.cpp b/lib/engine/components/resource-list/rl-entry-ref.cpp
index 26f907b..c384812 100644
--- a/lib/engine/components/resource-list/rl-entry-ref.cpp
+++ b/lib/engine/components/resource-list/rl-entry-ref.cpp
@@ -37,6 +37,8 @@
 
 #include "config.h"
 
+#include <glib/gi18n-lib.h>
+
 #include "rl-entry-ref.h"
 
 #include "presence-core.h"
@@ -131,8 +133,7 @@ RL::EntryRef::populate_menu (Ekiga::MenuBuilder& builder)
 		      sigc::mem_fun (this, &RL::EntryRef::refresh));
 
   if ( !uri.empty ())
-    populated =
-      presence_core->populate_presentity_menu (*this, uri, builder)
+    populated = presence_core->populate_presentity_menu (gmref_ptr<Ekiga::Presentity> (this), uri, builder)
       || populated;
 
   return populated;
diff --git a/lib/engine/components/resource-list/rl-entry.cpp b/lib/engine/components/resource-list/rl-entry.cpp
index b696bab..e32cec5 100644
--- a/lib/engine/components/resource-list/rl-entry.cpp
+++ b/lib/engine/components/resource-list/rl-entry.cpp
@@ -37,6 +37,8 @@
 
 #include "config.h"
 
+#include <glib/gi18n-lib.h>
+
 #include "rl-entry.h"
 
 #include "presence-core.h"
@@ -144,8 +146,7 @@ RL::Entry::populate_menu (Ekiga::MenuBuilder& builder)
 		      sigc::mem_fun (this, &RL::Entry::refresh));
 
   if ( !uri.empty ())
-    populated =
-      presence_core->populate_presentity_menu (*this, uri, builder)
+    populated = presence_core->populate_presentity_menu (gmref_ptr<Ekiga::Presentity> (this), uri, builder)
       || populated;
 
   return populated;
diff --git a/lib/engine/components/resource-list/rl-list.cpp b/lib/engine/components/resource-list/rl-list.cpp
index c1df5aa..974641e 100644
--- a/lib/engine/components/resource-list/rl-list.cpp
+++ b/lib/engine/components/resource-list/rl-list.cpp
@@ -38,6 +38,7 @@
 #include "config.h"
 
 #include <glib.h>
+#include <glib/gi18n-lib.h>
 
 #include "rl-list.h"
 
@@ -320,8 +321,9 @@ RL::ListImpl::parse ()
 	&& child->name != NULL
 	&& xmlStrEqual (BAD_CAST "list", child->name)) {
 
-      gmref_ptr<List> list = new List (core, path,
-				       list_pos, display_name, child);
+      gmref_ptr<List> list = gmref_ptr<List> (new List (core, path,
+							list_pos, display_name,
+							child));
       list->entry_added.connect (entry_added.make_slot ());
       list->entry_updated.connect (entry_updated.make_slot ());
       list->entry_removed.connect (entry_removed.make_slot ());
@@ -336,8 +338,10 @@ RL::ListImpl::parse ()
 	&& child->name != NULL
 	&& xmlStrEqual (BAD_CAST "entry", child->name)) {
 
-      gmref_ptr<Entry> entry = new Entry (core, path,
-					  entry_pos, display_name, child);
+      gmref_ptr<Entry> entry = gmref_ptr<Entry> (new Entry (core, path,
+							    entry_pos,
+							    display_name,
+							    child));
       std::list<sigc::connection> conns;
       conns.push_back (entry->updated.connect (sigc::bind (entry_updated.make_slot (), entry)));
       conns.push_back (entry->removed.connect (sigc::bind (entry_removed.make_slot (), entry)));



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