[ekiga/gnome-2-26] Syntactic sugar : Ekiga::SourcePtr instead of gmref_ptr<Ekiga::Source>
- From: Eugen Dedu <ededu src gnome org>
- To: svn-commits-list gnome org
- Subject: [ekiga/gnome-2-26] Syntactic sugar : Ekiga::SourcePtr instead of gmref_ptr<Ekiga::Source>
- Date: Mon, 27 Apr 2009 11:59:15 -0400 (EDT)
commit 2cbc7e201361fc1628e894381bd32b36c514e55e
Author: Julien Puydt <jpuydt src gnome org>
Date: Tue Mar 24 21:08:07 2009 +0000
Syntactic sugar : Ekiga::SourcePtr instead of gmref_ptr<Ekiga::Source>
svn path=/trunk/; revision=7811
---
lib/engine/addressbook/source.h | 2 ++
lib/engine/gui/gtk-frontend/addressbook-window.cpp | 20 ++++++++++----------
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/lib/engine/addressbook/source.h b/lib/engine/addressbook/source.h
index 6d51ae1..208d406 100644
--- a/lib/engine/addressbook/source.h
+++ b/lib/engine/addressbook/source.h
@@ -101,6 +101,8 @@ namespace Ekiga {
*/
ChainOfResponsibility<FormRequest*> questions;
};
+
+ typedef gmref_ptr<Source> SourcePtr;
};
#endif
diff --git a/lib/engine/gui/gtk-frontend/addressbook-window.cpp b/lib/engine/gui/gtk-frontend/addressbook-window.cpp
index 5a4c13a..41124bb 100644
--- a/lib/engine/gui/gtk-frontend/addressbook-window.cpp
+++ b/lib/engine/gui/gtk-frontend/addressbook-window.cpp
@@ -96,7 +96,7 @@ static void on_core_updated (gpointer data);
* BEHAVIOR :
* PRE : The given GtkWidget pointer must be an SearchBook GObject.
*/
-static void on_source_added (gmref_ptr<Ekiga::Source> source,
+static void on_source_added (Ekiga::SourcePtr source,
gpointer data);
@@ -105,7 +105,7 @@ static void on_source_added (gmref_ptr<Ekiga::Source> source,
* PRE : The given GtkWidget pointer must be an SearchBook GObject.
*/
static bool visit_books (Ekiga::BookPtr book,
- gmref_ptr<Ekiga::Source> source,
+ Ekiga::SourcePtr source,
gpointer data);
@@ -114,7 +114,7 @@ static bool visit_books (Ekiga::BookPtr book,
* BEHAVIOR : Add a view of the Book in the AddressBookWindow.
* PRE : The given GtkWidget pointer must be an SearchBook GObject.
*/
-static void on_book_added (gmref_ptr<Ekiga::Source> source,
+static void on_book_added (Ekiga::SourcePtr source,
Ekiga::BookPtr book,
gpointer data);
@@ -124,7 +124,7 @@ static void on_book_added (gmref_ptr<Ekiga::Source> source,
* BEHAVIOR : Remove the view of the Book from the AddressBookWindow.
* PRE : The given GtkWidget pointer must be an SearchBook GObject.
*/
-static void on_book_removed (gmref_ptr<Ekiga::Source> source,
+static void on_book_removed (Ekiga::SourcePtr source,
Ekiga::BookPtr book,
gpointer data);
@@ -134,7 +134,7 @@ static void on_book_removed (gmref_ptr<Ekiga::Source> source,
* BEHAVIOR : Update the Book in the AddressBookWindow.
* PRE : The given GtkWidget pointer must be an SearchBook GObject.
*/
-static void on_book_updated (gmref_ptr<Ekiga::Source> source,
+static void on_book_updated (Ekiga::SourcePtr source,
Ekiga::BookPtr book,
gpointer data);
@@ -251,7 +251,7 @@ on_core_updated (gpointer data)
static void
-on_source_added (gmref_ptr<Ekiga::Source> source,
+on_source_added (Ekiga::SourcePtr source,
gpointer data)
{
source->visit_books (sigc::bind (sigc::ptr_fun (visit_books),
@@ -260,7 +260,7 @@ on_source_added (gmref_ptr<Ekiga::Source> source,
static bool visit_books (Ekiga::BookPtr book,
- gmref_ptr<Ekiga::Source> source,
+ Ekiga::SourcePtr source,
gpointer data)
{
on_book_added (source, book, data);
@@ -270,7 +270,7 @@ static bool visit_books (Ekiga::BookPtr book,
static void
-on_book_added (gmref_ptr<Ekiga::Source> /*source*/,
+on_book_added (Ekiga::SourcePtr /*source*/,
Ekiga::BookPtr book,
gpointer data)
{
@@ -279,7 +279,7 @@ on_book_added (gmref_ptr<Ekiga::Source> /*source*/,
static void
-on_book_removed (gmref_ptr<Ekiga::Source> /*source*/,
+on_book_removed (Ekiga::SourcePtr /*source*/,
Ekiga::BookPtr book,
gpointer data)
{
@@ -288,7 +288,7 @@ on_book_removed (gmref_ptr<Ekiga::Source> /*source*/,
static void
-on_book_updated (gmref_ptr<Ekiga::Source> /*source*/,
+on_book_updated (Ekiga::SourcePtr /*source*/,
Ekiga::BookPtr book,
gpointer data)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]