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