[ekiga] Made the call history view emit the "selection-changed" signal



commit 0407650ab913335602450739de6f653d01012fab
Author: Snark <jpuydt gnome org>
Date:   Tue Oct 12 21:12:13 2010 +0200

    Made the call history view emit the "selection-changed" signal
    
    (and made the comment about the signal more precise)

 .../gui/gtk-frontend/call-history-view-gtk.cpp     |    2 ++
 .../gui/gtk-frontend/call-history-view-gtk.h       |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp b/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp
index 0152b4a..ff1eaa6 100644
--- a/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp
+++ b/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp
@@ -223,6 +223,8 @@ on_selection_changed (GtkTreeSelection* selection,
     g_signal_emit (self, signals[CONTACT_SELECTED_SIGNAL], 0, contact);
   } else
     g_signal_emit (self, signals[CONTACT_SELECTED_SIGNAL], 0, NULL);
+
+  g_signal_emit (self, signals[SELECTION_CHANGED_SIGNAL], 0);
 }
 
 /* GObject stuff */
diff --git a/lib/engine/gui/gtk-frontend/call-history-view-gtk.h b/lib/engine/gui/gtk-frontend/call-history-view-gtk.h
index 5e8cc60..8f6f860 100644
--- a/lib/engine/gui/gtk-frontend/call-history-view-gtk.h
+++ b/lib/engine/gui/gtk-frontend/call-history-view-gtk.h
@@ -62,7 +62,8 @@ void call_history_view_gtk_get_selected (CallHistoryViewGtk* self,
  * (or NULL if no contact is selected anymore)
  *
  * "selection-changed", comes with nothing -- it just says that either something
- * else has been selected, or what was selected changed.
+ * else has been selected, or what was selected changed (which can't happen for
+ * call history items!)
  */
 
 /* GObject thingies */



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