9709
|
1 /**
|
|
2 * @defgroup gtkui GTK+ User Interface
|
|
3 *
|
|
4 * gaim
|
|
5 *
|
|
6 * Gaim is the legal property of its developers, whose names are too numerous
|
|
7 * to list here. Please refer to the COPYRIGHT file distributed with this
|
|
8 * source distribution.
|
|
9 *
|
|
10 * This program is free software; you can redistribute it and/or modify
|
|
11 * it under the terms of the GNU General Public License as published by
|
|
12 * the Free Software Foundation; either version 2 of the License, or
|
|
13 * (at your option) any later version.
|
|
14 *
|
|
15 * This program is distributed in the hope that it will be useful,
|
|
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
18 * GNU General Public License for more details.
|
|
19 *
|
|
20 * You should have received a copy of the GNU General Public License
|
|
21 * along with this program; if not, write to the Free Software
|
|
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
23 */
|
9713
|
24 #ifndef _GAIM_GTKDIALOGS_H_
|
|
25 #define _GAIM_GTKDIALOGS_H_
|
9709
|
26
|
9791
|
27 #include "gtkgaim.h"
|
9718
|
28
|
9709
|
29 #include "account.h"
|
|
30 #include "conversation.h"
|
|
31
|
9713
|
32 /* Functions in gtkdialogs.c (these should actually stay in this file) */
|
9730
|
33 void gaim_gtkdialogs_destroy_all();
|
9753
|
34 void gaim_gtkdialogs_about();
|
9714
|
35 void gaim_gtkdialogs_im();
|
9730
|
36 void gaim_gtkdialogs_im_with_user(GaimAccount *, const char *);
|
9714
|
37 void gaim_gtkdialogs_info();
|
|
38 void gaim_gtkdialogs_log();
|
|
39 void gaim_gtkdialogs_warn(GaimConnection *, const char *);
|
9730
|
40 void gaim_gtkdialogs_alias_contact(GaimContact *);
|
|
41 void gaim_gtkdialogs_alias_buddy(GaimBuddy *);
|
|
42 void gaim_gtkdialogs_alias_chat(GaimChat *);
|
9714
|
43
|
9730
|
44 void gaim_gtkdialogs_remove_buddy(GaimBuddy *);
|
|
45 void gaim_gtkdialogs_remove_group(GaimGroup *);
|
|
46 void gaim_gtkdialogs_remove_chat(GaimChat *);
|
|
47 void gaim_gtkdialogs_remove_contact(GaimContact *);
|
9714
|
48
|
|
49 /* Everything after this should probably be moved elsewhere */
|
9713
|
50
|
9709
|
51 /**
|
|
52 * Our UI's identifier.
|
|
53 */
|
|
54 #define GAIM_DIALOG(x) x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \
|
|
55 gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG)
|
|
56 #define GAIM_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
|
|
57
|
|
58
|
|
59 /* this is used for queuing messages received while away. This is really a UI function
|
|
60 * which is why the struct is here. */
|
|
61
|
|
62 struct queued_message {
|
|
63 char name[80];
|
|
64 char alias[80];
|
|
65 char *message;
|
|
66 time_t tm;
|
|
67 GaimAccount *account;
|
|
68 GaimMessageFlags flags;
|
|
69 };
|
|
70
|
|
71 struct smiley_theme {
|
|
72 char *path;
|
|
73 char *name;
|
|
74 char *desc;
|
|
75 char *icon;
|
|
76 char *author;
|
10133
|
77
|
9709
|
78 struct smiley_list *list;
|
|
79 };
|
|
80
|
10302
|
81 /* Globals in gtkmain.c */
|
9709
|
82 extern int docklet_count;
|
|
83
|
10302
|
84 /* Globals in gtkthemes.c */
|
9709
|
85 extern struct smiley_theme *current_smiley_theme;
|
|
86 extern GSList *smiley_themes;
|
|
87
|
|
88 /* Functions in session.c */
|
|
89 extern void session_init(gchar *, gchar *, gchar *);
|
|
90 extern void session_end();
|
|
91
|
10302
|
92 /* Functions in gtkthemes.c */
|
9709
|
93 extern void smiley_themeize(GtkWidget *);
|
|
94 extern void smiley_theme_probe();
|
|
95 extern void load_smiley_theme(const char *file, gboolean load);
|
|
96 extern GSList *get_proto_smileys(const char *id);
|
|
97
|
9713
|
98 #endif /* _GAIM_GTKDIALOGS_H_ */
|