aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-01-10 00:14:20 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-10 00:14:20 +0800
commit73d7ebda32c08a293de01019906fd469fa0df50b (patch)
treeb3291cc1d2fa5266c5f4ae36560919537dfc3513 /src
parent4720729bda3fdb397de0b991be2f8a2292eb5261 (diff)
downloadgsoc2013-empathy-73d7ebda32c08a293de01019906fd469fa0df50b.tar
gsoc2013-empathy-73d7ebda32c08a293de01019906fd469fa0df50b.tar.gz
gsoc2013-empathy-73d7ebda32c08a293de01019906fd469fa0df50b.tar.bz2
gsoc2013-empathy-73d7ebda32c08a293de01019906fd469fa0df50b.tar.lz
gsoc2013-empathy-73d7ebda32c08a293de01019906fd469fa0df50b.tar.xz
gsoc2013-empathy-73d7ebda32c08a293de01019906fd469fa0df50b.tar.zst
gsoc2013-empathy-73d7ebda32c08a293de01019906fd469fa0df50b.zip
Remove dead code
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2168
Diffstat (limited to 'src')
-rw-r--r--src/empathy-event-manager.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index 514b8b21c..7ac18123f 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -167,11 +167,6 @@ event_manager_add (EmpathyEventManager *manager,
if (approval) {
event->approval = approval;
-#if 0 /* FIXME */
- g_signal_connect_swapped (channel, "invalidated",
- G_CALLBACK (event_remove),
- event);
-#endif
}
DEBUG ("Adding event %p", event);
@@ -479,77 +474,6 @@ event_manager_approve_channel_cb (EmpathyDispatcher *dispatcher,
}
}
-#if 0 /* FIXME dispatcher */
-
-#define TUBE_NO_APP_MESSAGE _("%s is offering you an invitation, but " \
- "you don't have the needed external " \
- "application to handle it.")
-
-
-static void
-event_tube_process_func (EventPriv *event)
-{
- EmpathyEventManagerPriv *priv = GET_PRIV (event->manager);
- EmpathyDispatcherTube *tube = (EmpathyDispatcherTube*) event->user_data;
-
- if (tube->activatable) {
- empathy_dispatcher_tube_process (priv->dispatcher, tube);
- } else {
- GtkWidget *dialog;
- gchar *str;
-
- /* Tell the user that the tube can't be handled */
- str = g_strdup_printf (TUBE_NO_APP_MESSAGE,
- empathy_contact_get_name (tube->initiator));
-
- dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_OK,
- "%s", str);
- gtk_window_set_title (GTK_WINDOW (dialog),
- _("Invitation Error"));
- g_free (str);
-
- gtk_widget_show (dialog);
- g_signal_connect (dialog, "response",
- G_CALLBACK (gtk_widget_destroy),
- NULL);
- }
-
- empathy_dispatcher_tube_unref (tube);
- event_remove (event);
-}
-
-static void
-event_manager_filter_tube_cb (EmpathyDispatcher *dispatcher,
- EmpathyDispatcherTube *tube,
- EmpathyEventManager *manager)
-{
- const gchar *icon_name;
- gchar *msg;
-
- empathy_contact_run_until_ready (tube->initiator,
- EMPATHY_CONTACT_READY_NAME, NULL);
-
- if (tube->activatable) {
- icon_name = GTK_STOCK_EXECUTE;
- msg = g_strdup_printf (_("%s is offering you an invitation. An external "
- "application will be started to handle it."),
- empathy_contact_get_name (tube->initiator));
- } else {
- icon_name = GTK_STOCK_DIALOG_ERROR;
- msg = g_strdup_printf (TUBE_NO_APP_MESSAGE,
- empathy_contact_get_name (tube->initiator));
- }
-
- event_manager_add (manager, tube->initiator, icon_name, msg,
- tube->channel, event_tube_process_func,
- empathy_dispatcher_tube_ref (tube));
-
- g_free (msg);
-}
-#endif
-
static void
event_pending_subscribe_func (EventPriv *event)
{
@@ -678,15 +602,6 @@ empathy_event_manager_init (EmpathyEventManager *manager)
g_signal_connect (priv->dispatcher, "approve",
G_CALLBACK (event_manager_approve_channel_cb),
manager);
- /*g_signal_connect (priv->dispatcher, "dispatch-channel",
- G_CALLBACK (event_manager_dispatch_channel_cb),
- manager);
- */
-#if 0 /* FIXME dispatcher */
- g_signal_connect (priv->dispatcher, "filter-tube",
- G_CALLBACK (event_manager_filter_tube_cb),
- manager);
-#endif
g_signal_connect (priv->contact_manager, "pendings-changed",
G_CALLBACK (event_manager_pendings_changed_cb),
manager);