[ekiga] Added the "selection-changed" signal to the roster view widget



commit dbc172d0b207a3710bda81719cfbab2d53d51bb4
Author: Snark <jpuydt gnome org>
Date:   Tue Oct 12 21:27:57 2010 +0200

    Added the "selection-changed" signal to the roster view widget
    
    It is not emitted yet.

 lib/engine/gui/gtk-frontend/roster-view-gtk.cpp |   11 +++++++++++
 lib/engine/gui/gtk-frontend/roster-view-gtk.h   |    4 ++++
 2 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
index 743d662..93dbbc8 100644
--- a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
+++ b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
@@ -80,6 +80,7 @@ enum {
   PRESENTITY_SELECTED_SIGNAL,
   HEAP_SELECTED_SIGNAL,
   HEAP_GROUP_SELECTED_SIGNAL,
+  SELECTION_CHANGED_SIGNAL,
   LAST_SIGNAL
 };
 
@@ -1418,11 +1419,21 @@ roster_view_gtk_class_init (gpointer g_class,
 		  G_TYPE_POINTER,
 		  G_TYPE_STRING);
 
+  signals[SELECTION_CHANGED_SIGNAL] =
+    g_signal_new ("selection-changed",
+		  G_OBJECT_CLASS_TYPE (gobject_class),
+		  G_SIGNAL_RUN_LAST,
+		  G_STRUCT_OFFSET (RosterViewGtkClass, heap_group_selected),
+		  NULL, NULL,
+		  g_cclosure_marshal_VOID__VOID,
+		  G_TYPE_NONE, 0);
+
   /* FIXME: is it useful? */
   roster_view_gtk_class = (RosterViewGtkClass*)g_class;
   roster_view_gtk_class->presentity_selected = NULL;
   roster_view_gtk_class->heap_selected = NULL;
   roster_view_gtk_class->heap_group_selected = NULL;
+  roster_view_gtk_class->selection_changed = NULL;
 }
 
 
diff --git a/lib/engine/gui/gtk-frontend/roster-view-gtk.h b/lib/engine/gui/gtk-frontend/roster-view-gtk.h
index 416c737..e284595 100644
--- a/lib/engine/gui/gtk-frontend/roster-view-gtk.h
+++ b/lib/engine/gui/gtk-frontend/roster-view-gtk.h
@@ -77,6 +77,9 @@ void roster_view_gtk_get_selected (RosterViewGtk* self,
  *
  * - "presentity-selected", comes with a pointer which is an Ekiga::Presentity*
  * (or NULL if no presentity is selected anymore)
+ *
+ * - "selection-changed", comes with nothing, and notifies whether either the
+ * selection changed, or the selected object changed.
  */
 
 
@@ -99,6 +102,7 @@ struct _RosterViewGtkClass
   void (*heap_group_selected) (RosterViewGtk* self,
 			       gpointer heap,
 			       const gchar* group_name);
+  void (*selection_changed) (RosterViewGtk* self);
 };
 
 #define ROSTER_VIEW_GTK_TYPE (roster_view_gtk_get_type ())



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