ekiga r7811 - in trunk/lib/engine: addressbook gui/gtk-frontend



Author: jpuydt
Date: Tue Mar 24 21:08:07 2009
New Revision: 7811
URL: http://svn.gnome.org/viewvc/ekiga?rev=7811&view=rev

Log:
Syntactic sugar : Ekiga::SourcePtr instead of gmref_ptr<Ekiga::Source>

Modified:
   trunk/lib/engine/addressbook/source.h
   trunk/lib/engine/gui/gtk-frontend/addressbook-window.cpp

Modified: trunk/lib/engine/addressbook/source.h
==============================================================================
--- trunk/lib/engine/addressbook/source.h	(original)
+++ trunk/lib/engine/addressbook/source.h	Tue Mar 24 21:08:07 2009
@@ -101,6 +101,8 @@
      */
     ChainOfResponsibility<FormRequest*> questions;
   };
+
+  typedef gmref_ptr<Source> SourcePtr;
 };
 
 #endif

Modified: trunk/lib/engine/gui/gtk-frontend/addressbook-window.cpp
==============================================================================
--- trunk/lib/engine/gui/gtk-frontend/addressbook-window.cpp	(original)
+++ trunk/lib/engine/gui/gtk-frontend/addressbook-window.cpp	Tue Mar 24 21:08:07 2009
@@ -96,7 +96,7 @@
  * 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 @@
  * 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 @@
  * 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 @@
  * 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 @@
  * 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 @@
 
 
 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 @@
 
 
 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 void
-on_book_added (gmref_ptr<Ekiga::Source> /*source*/,
+on_book_added (Ekiga::SourcePtr /*source*/,
 	       Ekiga::BookPtr book,
                gpointer data)
 {
@@ -279,7 +279,7 @@
 
 
 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 @@
 
 
 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]