telepathyClient: Remove C-based TelepathyLogger wrapper
gjs has matured enough to the point where we don't need this https://bugzilla.gnome.org/show_bug.cgi?id=676850
This commit is contained in:
parent
022376dd56
commit
a1f68720e5
@ -509,10 +509,10 @@ const ChatSource = new Lang.Class({
|
|||||||
_getLogMessages: function() {
|
_getLogMessages: function() {
|
||||||
let logManager = Tpl.LogManager.dup_singleton();
|
let logManager = Tpl.LogManager.dup_singleton();
|
||||||
let entity = Tpl.Entity.new_from_tp_contact(this._contact, Tpl.EntityType.CONTACT);
|
let entity = Tpl.Entity.new_from_tp_contact(this._contact, Tpl.EntityType.CONTACT);
|
||||||
Shell.get_contact_events(logManager,
|
|
||||||
this._account, entity,
|
logManager.get_filtered_events_async(this._account, entity,
|
||||||
SCROLLBACK_HISTORY_LINES,
|
Tpl.EventTypeMask.TEXT, SCROLLBACK_HISTORY_LINES,
|
||||||
Lang.bind(this, this._displayPendingMessages));
|
null, Lang.bind(this, this._displayPendingMessages));
|
||||||
},
|
},
|
||||||
|
|
||||||
_displayPendingMessages: function(logManager, result) {
|
_displayPendingMessages: function(logManager, result) {
|
||||||
|
@ -330,34 +330,6 @@ shell_tp_client_grab_contact_list_changed (ShellTpClient *self,
|
|||||||
|
|
||||||
/* Telepathy utility functions */
|
/* Telepathy utility functions */
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* shell_get_contact_events:
|
|
||||||
* @log_manager: A #TplLogManager
|
|
||||||
* @account: A #TpAccount
|
|
||||||
* @entity: A #TplEntity
|
|
||||||
* @num_events: The number of events to retrieve
|
|
||||||
* @callback: (scope async): User callback to run when the contact is ready
|
|
||||||
*
|
|
||||||
* Wrap tpl_log_manager_get_filtered_events_async because gjs cannot support
|
|
||||||
* multiple callbacks in the same function call.
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
shell_get_contact_events (TplLogManager *log_manager,
|
|
||||||
TpAccount *account,
|
|
||||||
TplEntity *entity,
|
|
||||||
guint num_events,
|
|
||||||
GAsyncReadyCallback callback)
|
|
||||||
{
|
|
||||||
tpl_log_manager_get_filtered_events_async (log_manager,
|
|
||||||
account,
|
|
||||||
entity,
|
|
||||||
TPL_EVENT_MASK_TEXT,
|
|
||||||
num_events,
|
|
||||||
NULL, NULL,
|
|
||||||
callback, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* gjs doesn't allow us to craft a GError so we need a C wrapper */
|
/* gjs doesn't allow us to craft a GError so we need a C wrapper */
|
||||||
void
|
void
|
||||||
shell_decline_dispatch_op (TpAddDispatchOperationContext *context,
|
shell_decline_dispatch_op (TpAddDispatchOperationContext *context,
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
|
|
||||||
#include <telepathy-glib/telepathy-glib.h>
|
#include <telepathy-glib/telepathy-glib.h>
|
||||||
#include <telepathy-logger/telepathy-logger.h>
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
@ -103,12 +102,6 @@ void shell_tp_client_grab_contact_list_changed (ShellTpClient *self,
|
|||||||
|
|
||||||
/* Telepathy utility functions */
|
/* Telepathy utility functions */
|
||||||
|
|
||||||
void shell_get_contact_events (TplLogManager *log_manager,
|
|
||||||
TpAccount *account,
|
|
||||||
TplEntity *entity,
|
|
||||||
guint num_events,
|
|
||||||
GAsyncReadyCallback callback);
|
|
||||||
|
|
||||||
void shell_decline_dispatch_op (TpAddDispatchOperationContext *context,
|
void shell_decline_dispatch_op (TpAddDispatchOperationContext *context,
|
||||||
const gchar *message);
|
const gchar *message);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user