pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
Remove the old accounts signals as they're no longer used
2 months ago, Gary Kramlich
c29c417539ff
Remove the old accounts signals as they're no longer used
Testing Done:
Called in the turtles.
Reviewed at https://reviews.imfreedom.org/r/3129/
/*
* Purple - Internet Messaging Library
* Copyright (C) Pidgin Developers <devel@pidgin.im>
*
* Purple is the legal property of its developers, whose names are too numerous
* to list here. Please refer to the COPYRIGHT file distributed with this
* source distribution.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this library; if not, see <https://www.gnu.org/licenses/>.
*/
#include
"conversations.h"
#include
"prefs.h"
#include
"purpleprivate.h"
#include
"purpleconversationmanager.h"
#include
"signals.h"
void
*
purple_conversations_get_handle
(
void
)
{
static
int
handle
;
return
&
handle
;
}
void
purple_conversations_init
(
void
)
{
void
*
handle
=
purple_conversations_get_handle
();
/**********************************************************************
* Register preferences
**********************************************************************/
/* Conversations */
purple_prefs_add_none
(
"/purple/conversations"
);
/* Conversations -> Chat */
purple_prefs_add_none
(
"/purple/conversations/chat"
);
purple_prefs_add_bool
(
"/purple/conversations/chat/show_nick_change"
,
TRUE
);
/* Conversations -> IM */
purple_prefs_add_none
(
"/purple/conversations/im"
);
purple_prefs_add_bool
(
"/purple/conversations/im/send_typing"
,
TRUE
);
/**********************************************************************
* Register signals
**********************************************************************/
purple_signal_register
(
handle
,
"conversation-created"
,
purple_marshal_VOID__POINTER
,
G_TYPE_NONE
,
1
,
PURPLE_TYPE_CONVERSATION
);
purple_signal_register
(
handle
,
"conversation-updated"
,
purple_marshal_VOID__POINTER_UINT
,
G_TYPE_NONE
,
2
,
PURPLE_TYPE_CONVERSATION
,
G_TYPE_UINT
);
purple_signal_register
(
handle
,
"deleting-conversation"
,
purple_marshal_VOID__POINTER
,
G_TYPE_NONE
,
1
,
PURPLE_TYPE_CONVERSATION
);
purple_signal_register
(
handle
,
"cleared-message-history"
,
purple_marshal_VOID__POINTER
,
G_TYPE_NONE
,
1
,
PURPLE_TYPE_CONVERSATION
);
purple_signal_register
(
handle
,
"conversation-extended-menu"
,
purple_marshal_VOID__POINTER_POINTER
,
G_TYPE_NONE
,
2
,
PURPLE_TYPE_CONVERSATION
,
G_TYPE_POINTER
);
/* (GList **) */
}
void
purple_conversations_uninit
(
void
)
{
purple_signals_unregister_by_instance
(
purple_conversations_get_handle
());
}