Mercurial > pidgin
annotate src/gnome_applet_mgr.h @ 338:9d258a0aa560
[gaim-migrate @ 348]
Whoa, all kinds of things happened here. The applet looks better. The
preferences dialog changes based on your compile-time options (oscar,
gnome). Whispering works again. libfaim got updated; it can almost do
RVOUS stuff, and hopefully soon can make requests too. The applet doesn't
need to have its sounds go through GNOME, although it still can. There
is code to facilitate SOCKS5 support (all that needs to be done is to
actually write the code to communicate with the proxy server).
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 06 Jun 2000 09:55:30 +0000 |
parents | 05077cb276d4 |
children | f4fba304b236 |
rev | line source |
---|---|
1 | 1 /************************************************************** |
2 ** | |
3 ** GaimGnomeAppletMgr | |
4 ** Author - Quinticent (John Palmieri: johnp@martianrock.com) | |
5 ** | |
6 ** Purpose - Takes over the task of managing the GNOME applet | |
7 ** code and provides a centralized codebase for | |
8 ** GNOME integration for Gaim. | |
9 ** | |
10 ** Legal Stuff - | |
11 ** | |
12 ** gaim | |
13 ** | |
14 ** Copyright (C) 1998-1999, Mark Spencer <markster@marko.net> | |
15 ** | |
16 ** This program is free software; you can redistribute it and/or modify | |
17 ** it under the terms of the GNU General Public License as published by | |
18 ** the Free Software Foundation; either version 2 of the License, or | |
19 ** (at your option) any later version. | |
20 ** | |
21 ** This program is distributed in the hope that it will be useful, | |
22 ** but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24 ** GNU General Public License for more details. | |
25 ** | |
26 ** You should have received a copy of the GNU General Public License | |
27 ** along with this program; if not, write to the Free Software | |
28 ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
29 ** | |
30 **************************************************************/ | |
31 #ifndef _GAIMGNOMEAPPLETMGR_H_ | |
32 #define _GAIMGNOMEAPPLETMGR_H_ | |
33 #ifdef USE_APPLET | |
34 | |
35 #include <gnome.h> | |
36 #include <gtk/gtk.h> | |
37 #include <stdio.h> | |
38 #include <string.h> | |
39 #include <stdarg.h> | |
40 #include <stdlib.h> | |
41 #include <applet-widget.h> | |
42 | |
43 enum gaim_user_states { | |
44 offline = 0, | |
45 signing_on, | |
46 online, | |
47 unread_message_pending, | |
48 away | |
49 }; | |
50 | |
51 | |
52 #define _MSG_OFFLINE_ "Offline" | |
53 #define _MSG_CONNECT_ "Connecting" | |
54 #define _MSG_ONLINE_ "Online" | |
55 #define _MSG_FONT_ "-adobe-helvetica-medium-r-normal-*-*-80-*-*-p-*-iso8859-1" | |
56 | |
82 | 57 #define GAIM_GNOME_DEVIL_OFFLINE "gaim/gnome/devil-offline.png" |
58 #define GAIM_GNOME_DEVIL_CONNECT "gaim/gnome/devil-connect.png" | |
59 #define GAIM_GNOME_DEVIL_ONLINE "gaim/gnome/devil-online.png" | |
1 | 60 |
82 | 61 #define GAIM_GNOME_PENGUIN_OFFLINE "gaim/gnome/penguin-offline.png" |
62 #define GAIM_GNOME_PENGUIN_CONNECT "gaim/gnome/penguin-connect.png" | |
63 #define GAIM_GNOME_PENGUIN_ONLINE "gaim/gnome/penguin-online.png" | |
1 | 64 |
338
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
65 gint init_applet_mgr(); |
1 | 66 |
338
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
67 void setUserState( enum gaim_user_states state ); |
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
68 enum gaim_user_states getUserState(); |
1 | 69 |
338
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
70 void AppletCancelLogon(); /* Used to cancel a logon and reset the applet */ |
1 | 71 |
338
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
72 void set_applet_draw_open(); |
9d258a0aa560
[gaim-migrate @ 348]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
82
diff
changeset
|
73 void set_applet_draw_closed(); |
1 | 74 |
18 | 75 void insert_applet_away(); |
76 void remove_applet_away(); | |
1 | 77 |
82 | 78 void update_pixmaps(); |
1 | 79 |
80 | |
81 #endif /*USE_APPLET*/ | |
82 #endif /*_GAIMGNOMEAPPLETMGR_H_*/ |