[ekiga] Removed the message_notice_event from the chat area widget
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Removed the message_notice_event from the chat area widget
- Date: Wed, 26 Feb 2014 09:33:45 +0000 (UTC)
commit f4e618cfab4bcbc349487666ce3d4b06c9f43a2e
Author: Julien Puydt <jpuydt free fr>
Date: Wed Feb 26 09:20:58 2014 +0100
Removed the message_notice_event from the chat area widget
Since we now have an api to track count of unread messages, it's useless
lib/engine/gui/gtk-frontend/chat-area.cpp | 20 --------------------
lib/engine/gui/gtk-frontend/chat-area.h | 3 ---
2 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/chat-area.cpp b/lib/engine/gui/gtk-frontend/chat-area.cpp
index 194a77b..e05b31f 100644
--- a/lib/engine/gui/gtk-frontend/chat-area.cpp
+++ b/lib/engine/gui/gtk-frontend/chat-area.cpp
@@ -67,13 +67,6 @@ struct _ChatAreaPrivate
GtkWidget* message;
};
-enum {
- MESSAGE_NOTICE_EVENT,
- LAST_SIGNAL
-};
-
-static guint signals[LAST_SIGNAL] = { 0 };
-
G_DEFINE_TYPE (ChatArea, chat_area, GTK_TYPE_PANED);
/* declaration of internal api */
@@ -209,8 +202,6 @@ chat_area_add_notice (ChatArea* self,
mark = gtk_text_buffer_get_mark (buffer, "current-position");
gtk_text_view_scroll_to_mark (GTK_TEXT_VIEW (self->priv->text_view), mark,
0.0, FALSE, 0,0);
-
- g_signal_emit (self, signals[MESSAGE_NOTICE_EVENT], 0);
}
static void
@@ -233,8 +224,6 @@ chat_area_add_message (ChatArea* self,
mark = gtk_text_buffer_get_mark (buffer, "current-position");
gtk_text_view_scroll_to_mark (GTK_TEXT_VIEW (self->priv->text_view), mark,
0.0, FALSE, 0,0);
-
- g_signal_emit (self, signals[MESSAGE_NOTICE_EVENT], 0);
}
/* implementation of callbacks */
@@ -666,15 +655,6 @@ chat_area_class_init (ChatAreaClass* klass)
gobject_class->dispose = chat_area_dispose;
gobject_class->finalize = chat_area_finalize;
-
- signals[MESSAGE_NOTICE_EVENT] =
- g_signal_new ("message-notice-event",
- G_OBJECT_CLASS_TYPE (gobject_class),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (ChatAreaClass, message_notice_event),
- NULL, NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
}
static void
diff --git a/lib/engine/gui/gtk-frontend/chat-area.h b/lib/engine/gui/gtk-frontend/chat-area.h
index 7900e0e..a2bf1da 100644
--- a/lib/engine/gui/gtk-frontend/chat-area.h
+++ b/lib/engine/gui/gtk-frontend/chat-area.h
@@ -58,9 +58,6 @@ struct _ChatArea
struct _ChatAreaClass
{
GtkPanedClass parent;
-
- /* this is the "message-notice-event" signal */
- void (*message_notice_event) (ChatArea* self);
};
/* public api */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]