[ekiga] Added the "selection-changed" signal to the call history view
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Added the "selection-changed" signal to the call history view
- Date: Tue, 12 Oct 2010 20:44:30 +0000 (UTC)
commit c4c8fcefeb7e5f247f0ca88229989357b6162c76
Author: Snark <jpuydt gnome org>
Date: Tue Oct 12 21:09:54 2010 +0200
Added the "selection-changed" signal to the call history view
This signal isn't even emitted yet.
.../gui/gtk-frontend/call-history-view-gtk.cpp | 11 +++++++++++
.../gui/gtk-frontend/call-history-view-gtk.h | 6 +++++-
2 files changed, 16 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 3208ad1..0152b4a 100644
--- a/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp
+++ b/lib/engine/gui/gtk-frontend/call-history-view-gtk.cpp
@@ -71,6 +71,7 @@ enum {
/* and this is the list of signals supported */
enum {
CONTACT_SELECTED_SIGNAL,
+ SELECTION_CHANGED_SIGNAL,
LAST_SIGNAL
};
@@ -300,9 +301,19 @@ call_history_view_gtk_class_init (gpointer g_class,
G_TYPE_NONE, 1,
G_TYPE_POINTER);
+ signals[SELECTION_CHANGED_SIGNAL] =
+ g_signal_new ("contact-selected",
+ G_OBJECT_CLASS_TYPE (gobject_class),
+ G_SIGNAL_RUN_LAST,
+ G_STRUCT_OFFSET (CallHistoryViewGtkClass, contact_selected),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
+
/* FIXME: is it useful? */
call_history_view_gtk_class = (CallHistoryViewGtkClass*)g_class;
call_history_view_gtk_class->contact_selected = NULL;
+ call_history_view_gtk_class->selection_changed = NULL;
}
GType
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 ba949f6..5e8cc60 100644
--- a/lib/engine/gui/gtk-frontend/call-history-view-gtk.h
+++ b/lib/engine/gui/gtk-frontend/call-history-view-gtk.h
@@ -57,9 +57,12 @@ void call_history_view_gtk_get_selected (CallHistoryViewGtk* self,
History::Contact** contact);
-/* This widget emits a single signal :
+/* This widget emits two signals :
* "contact-selected", comes with a pointer which is a History::Contact*
* (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.
*/
/* GObject thingies */
@@ -76,6 +79,7 @@ struct _CallHistoryViewGtkClass
void (*contact_selected) (CallHistoryViewGtk* self,
gpointer contact);
+ void (*selection_changed) (CallHistoryViewGtk* self);
};
#define CALL_HISTORY_VIEW_GTK_TYPE (call_history_view_gtk_get_type ())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]