The presence manager now stores everything in a directory rather than a single
ini file. This avoids relocating schemas which seems to have a number of
issues.
Also bind the "active" setting to the "active-presence" property so that you
can change the active presence via the `manager.ini` gsettings keyfile.
So other various tweaks as well.
Testing Done:
Opened `manager.ini` and toggled the active status between a few I created.
Consulted with the turtles and ran the `presence_manager` and `saved_presence` unit tests under valgrind.
Reviewed at https://reviews.imfreedom.org/r/2912/
/*
* finch
*
* Finch 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 program 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 program 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 program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
*/
#include<glib/gi18n-lib.h>
#include<purple.h>
#include<gnt.h>
#include"gntaccount.h"
#include"gntblist.h"
#include"libfinch.h"
#include<string.h>
typedefstruct
{
GntWidget*window;
GntWidget*tree;
}FinchAccountList;
staticFinchAccountListaccounts;
typedefstruct
{
PurpleAccount*account;/* NULL for a new account */
GntWidget*window;
GntWidget*protocol;
GntWidget*username;
GntWidget*require_password;
GntWidget*alias;
GntWidget*splits;
GList*split_entries;
GList*protocol_entries;
GntWidget*protocols;
GntWidget*remember;
}AccountEditDialog;
/* This is necessary to close an edit-dialog when an account is deleted */