Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 237941 | Differences between
and this patch

Collapse All | Expand All

(-)a/libs/imwrapper/src/purple/PurpleIMFactory.cpp (+28 lines)
Lines 140-145 Link Here
140
	return closure->result;
140
	return closure->result;
141
}
141
}
142
142
143
static void* purple_wg_request_action(const char *title, const char *primary,
144
		const char *secondary, int default_action,
145
		PurpleAccount *account, const char *who,
146
		PurpleConversation *conv, void *user_data, size_t action_count,
147
		va_list actions) {
148
	const char *text = va_arg(actions, const char *);
149
	PurpleRequestActionCb callback = va_arg(actions, PurpleRequestActionCb);
150
151
	LOG_WARN("requested action: %s: %s, %s. Default action: %s", title, primary, secondary, text);
152
	callback(user_data, 0);
153
        return NULL;
154
}
155
143
gpointer PurpleMainEventLoop(gpointer data) {
156
gpointer PurpleMainEventLoop(gpointer data) {
144
	if (gMainLoop) {
157
	if (gMainLoop) {
145
		LOG_FATAL("gMainLoop already created");
158
		LOG_FATAL("gMainLoop already created");
Lines 170-175 Link Here
170
	g_source_remove,
183
	g_source_remove,
171
	purple_wg_input_add,
184
	purple_wg_input_add,
172
	g_source_remove
185
	g_source_remove
186
};
187
188
static PurpleRequestUiOps request_wg_ops = {
189
	NULL,
190
	NULL,
191
	purple_wg_request_action,
192
	NULL,
193
	NULL,
194
	NULL,
195
	NULL,
196
	NULL,
197
	NULL,
198
	NULL
173
};
199
};
174
200
175
bool PurpleIMFactory::equals(const IMAccount & imAccount, std::string login, EnumIMProtocol::IMProtocol protocol) {
201
bool PurpleIMFactory::equals(const IMAccount & imAccount, std::string login, EnumIMProtocol::IMProtocol protocol) {
Lines 236-241 Link Here
236
	purple_plugins_add_search_path("plugins");
262
	purple_plugins_add_search_path("plugins");
237
	g_free(search_path);
263
	g_free(search_path);
238
264
265
	purple_request_set_ui_ops(&request_wg_ops);
266
239
	if (!purple_core_init("Wengo PURPLE")) {
267
	if (!purple_core_init("Wengo PURPLE")) {
240
		LOG_WARN("Initialization of the Purple core failed\n");
268
		LOG_WARN("Initialization of the Purple core failed\n");
241
	}
269
	}

Return to bug 237941