1261
|
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 **************************************************************/
|
2417
|
31 #ifndef _APPLET_H_
|
|
32 #define _APPLET_H_
|
1261
|
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 away
|
|
48 };
|
|
49
|
|
50
|
1689
|
51 /*
|
1261
|
52 #define _MSG_OFFLINE_ "Offline"
|
|
53 #define _MSG_CONNECT_ "Connecting"
|
|
54 #define _MSG_ONLINE_ "Online"
|
1499
|
55 #define _MSG_FONT_ "-*-helvetica-medium-r-*-*-*-80-*-*-*-*-*-*"
|
1689
|
56 */
|
1261
|
57
|
|
58 #define GAIM_GNOME_DEVIL_OFFLINE "gaim/gnome/devil-offline.png"
|
|
59 #define GAIM_GNOME_DEVIL_CONNECT "gaim/gnome/devil-connect.png"
|
|
60 #define GAIM_GNOME_DEVIL_ONLINE "gaim/gnome/devil-online.png"
|
|
61
|
|
62 #define GAIM_GNOME_PENGUIN_OFFLINE "gaim/gnome/penguin-offline.png"
|
|
63 #define GAIM_GNOME_PENGUIN_CONNECT "gaim/gnome/penguin-connect.png"
|
|
64 #define GAIM_GNOME_PENGUIN_ONLINE "gaim/gnome/penguin-online.png"
|
|
65
|
2468
|
66 /*
|
1261
|
67 #define GAIM_GNOME_OFFLINE_ICON "apple-red.png"
|
|
68 #define GAIM_GNOME_CONNECT_ICON "gnome-battery.png"
|
|
69 #define GAIM_GNOME_ONLINE_ICON "apple-green.png"
|
2468
|
70 */
|
|
71
|
|
72 #define GAIM_GNOME_OFFLINE_ICON "gaim/offline.png"
|
|
73 #define GAIM_GNOME_CONNECT_ICON "gaim/connect.png"
|
|
74 #define GAIM_GNOME_ONLINE_ICON "gaim/online.png"
|
|
75 #define GAIM_GNOME_AWAY_ICON "gaim/away.png"
|
|
76 #define GAIM_GNOME_MSG_PENDING_ICON "gaim/msgpend.png"
|
1261
|
77
|
2437
|
78 extern GtkWidget *applet;
|
|
79
|
1261
|
80 extern gint init_applet_mgr();
|
|
81 extern void applet_do_signon(AppletWidget *, gpointer);
|
|
82 extern void make_buddy();
|
|
83 extern void cancel_logon();
|
|
84 extern gint applet_destroy_buddy(GtkWidget *, GdkEvent *, gpointer *);
|
2435
|
85 extern void createOnlinePopup();
|
1261
|
86
|
|
87 extern void set_user_state( enum gaim_user_states state );
|
|
88
|
|
89 extern void insert_applet_away();
|
|
90 extern void remove_applet_away();
|
|
91
|
|
92 extern void update_pixmaps();
|
|
93 extern void applet_set_tooltips(char *);
|
|
94
|
|
95 extern gboolean applet_buddy_show;
|
|
96
|
|
97 #endif /*USE_APPLET*/
|
2417
|
98 #endif /*_APPLET_H_*/
|