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