aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-05-18 23:46:19 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-06-17 20:53:22 +0800
commit6255e0f1e25d1a2928fb29fd3a0417cabaec46b4 (patch)
tree4677939216b5ec0b3e1f54dea63d894015de4c4f /src
parent81073b4ead57026a71a8e192947123aef9f9a3cf (diff)
downloadgsoc2013-empathy-6255e0f1e25d1a2928fb29fd3a0417cabaec46b4.tar
gsoc2013-empathy-6255e0f1e25d1a2928fb29fd3a0417cabaec46b4.tar.gz
gsoc2013-empathy-6255e0f1e25d1a2928fb29fd3a0417cabaec46b4.tar.bz2
gsoc2013-empathy-6255e0f1e25d1a2928fb29fd3a0417cabaec46b4.tar.lz
gsoc2013-empathy-6255e0f1e25d1a2928fb29fd3a0417cabaec46b4.tar.xz
gsoc2013-empathy-6255e0f1e25d1a2928fb29fd3a0417cabaec46b4.tar.zst
gsoc2013-empathy-6255e0f1e25d1a2928fb29fd3a0417cabaec46b4.zip
event-manager: disable approving for now
Diffstat (limited to 'src')
-rw-r--r--src/empathy-event-manager.c21
1 files changed, 6 insertions, 15 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 2f269f573..9468b5414 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -61,7 +61,6 @@
typedef struct {
EmpathyEventManager *manager;
EmpathyDispatchOperation *operation;
- gulong approved_handler;
gulong claimed_handler;
gulong invalidated_handler;
/* Remove contact if applicable */
@@ -109,6 +108,7 @@ G_DEFINE_TYPE (EmpathyEventManager, empathy_event_manager, G_TYPE_OBJECT);
static EmpathyEventManager * manager_singleton = NULL;
+#if 0
static EventManagerApproval *
event_manager_approval_new (EmpathyEventManager *manager,
EmpathyDispatchOperation *operation)
@@ -119,13 +119,12 @@ event_manager_approval_new (EmpathyEventManager *manager,
return result;
}
+#endif
static void
event_manager_approval_free (EventManagerApproval *approval)
{
g_signal_handler_disconnect (approval->operation,
- approval->approved_handler);
- g_signal_handler_disconnect (approval->operation,
approval->claimed_handler);
g_signal_handler_disconnect (approval->operation,
approval->invalidated_handler);
@@ -225,6 +224,7 @@ event_manager_add (EmpathyEventManager *manager,
}
}
+#if 0
static void
event_channel_process_func (EventPriv *event)
{
@@ -463,13 +463,6 @@ event_manager_approval_done (EventManagerApproval *approval)
}
static void
-event_manager_operation_approved_cb (EmpathyDispatchOperation *operation,
- EventManagerApproval *approval)
-{
- event_manager_approval_done (approval);
-}
-
-static void
event_manager_operation_claimed_cb (EmpathyDispatchOperation *operation,
EventManagerApproval *approval)
{
@@ -564,7 +557,9 @@ invite_dialog_response_cb (GtkDialog *dialog,
empathy_dispatch_operation_set_user_action_time (approval->operation,
timestamp);
+ /*
empathy_dispatch_operation_approve (approval->operation);
+ */
}
static void
@@ -690,9 +685,6 @@ event_manager_approve_channel_cb (EmpathyDispatcher *dispatcher,
approval = event_manager_approval_new (manager, operation);
priv->approvals = g_slist_prepend (priv->approvals, approval);
- approval->approved_handler = g_signal_connect (operation, "approved",
- G_CALLBACK (event_manager_operation_approved_cb), approval);
-
approval->claimed_handler = g_signal_connect (operation, "claimed",
G_CALLBACK (event_manager_operation_claimed_cb), approval);
@@ -777,6 +769,7 @@ event_manager_approve_channel_cb (EmpathyDispatcher *dispatcher,
DEBUG ("Unknown channel type (%s), ignoring..", channel_type);
}
}
+#endif
static void
event_pending_subscribe_func (EventPriv *event)
@@ -1000,8 +993,6 @@ empathy_event_manager_init (EmpathyEventManager *manager)
priv->dispatcher = empathy_dispatcher_dup_singleton ();
priv->contact_manager = empathy_contact_manager_dup_singleton ();
- g_signal_connect (priv->dispatcher, "approve",
- G_CALLBACK (event_manager_approve_channel_cb), manager);
g_signal_connect (priv->contact_manager, "pendings-changed",
G_CALLBACK (event_manager_pendings_changed_cb), manager);
g_signal_connect (priv->contact_manager, "members-changed",