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
|
|
58 #define GAIM_DIALOG(x) x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \
|
|
59 gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG)
|
|
60 #define GAIM_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
|
|
61
|
|
62 #define DEFAULT_FONT_FACE "Helvetica"
|
|
63
|
|
64
|
|
65 /* this is used for queuing messages received while away. This is really a UI function
|
|
66 * which is why the struct is here. */
|
|
67
|
|
68 struct queued_message {
|
|
69 char name[80];
|
|
70 char alias[80];
|
|
71 char *message;
|
|
72 time_t tm;
|
|
73 GaimAccount *account;
|
|
74 GaimMessageFlags flags;
|
|
75 };
|
|
76
|
|
77 struct smiley_theme {
|
|
78 char *path;
|
|
79 char *name;
|
|
80 char *desc;
|
|
81 char *icon;
|
|
82 char *author;
|
|
83
|
|
84 struct smiley_list *list;
|
|
85 };
|
|
86
|
|
87 /* Globals in main.c */
|
|
88 extern GtkWidget *mainwindow;
|
|
89 extern int docklet_count;
|
|
90
|
|
91 /* Globals in themes.c */
|
|
92 extern struct smiley_theme *current_smiley_theme;
|
|
93 extern GSList *smiley_themes;
|
|
94
|
|
95 /* Functions in main.c */
|
|
96 extern void show_login();
|
|
97 extern void gaim_setup(GaimConnection *);
|
|
98
|
|
99 /* Functions in session.c */
|
|
100 extern void session_init(gchar *, gchar *, gchar *);
|
|
101 extern void session_end();
|
|
102
|
|
103 /* Functions in themes.c */
|
|
104 extern void smiley_themeize(GtkWidget *);
|
|
105 extern void smiley_theme_probe();
|
|
106 extern void load_smiley_theme(const char *file, gboolean load);
|
|
107 extern GSList *get_proto_smileys(const char *id);
|
|
108
|
9713
|
109 #endif /* _GAIM_GTKDIALOGS_H_ */
|