root/prefs.h

Revision d1a41d2b9e8293b7310d616fd8ccd24ddf38d9be, 1.3 kB (checked in by Leo Antunes <leo@…>, 10 months ago)

- store changed status as pref and restore at startup if it exists:

avoid awayonlock messing with the last-online status if you quit
while idle.

- minor tweaks and fixes to the test script

  • Property mode set to 100644
Line 
1/*
2 awayonlock - plugin to set away status on screensaver activation
3 Copyright (C) 2009  Leo Antunes <leo@costela.net>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc.
18
19*/
20
21#ifndef _AWAYONLOCK_PREFS_H
22#define _AWAYONLOCK_PREFS_H
23
24#include <glib.h>
25#include <plugin.h>
26#include <savedstatuses.h>
27
28#define AWAYONLOCK_PREF_ROOT "/plugins/core/awayonlock"
29#define AWAYONLOCK_PREF_STATUS "/plugins/core/awayonlock/status"
30#define AWAYONLOCK_PREF_OLD_STATUS "/plugins/core/awayonlock/old_status"
31#define AWAYONLOCK_PREF_AVAILABLE_ONLY "/plugins/core/awayonlock/available_only"
32
33PurplePluginPrefFrame* get_prefs_frame(PurplePlugin*);
34
35void prefs_status_deleted_cb(PurpleSavedStatus*, gpointer);
36
37static PurplePluginUiInfo prefs = {
38        get_prefs_frame,
39        0,
40        NULL,
41        NULL,
42        NULL,
43        NULL,
44        NULL
45};
46
47
48#endif
Note: See TracBrowser for help on using the browser.