gtkdialogs.h
1
5 /* pidgin
6 *
7 * Pidgin 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
24 */
25 #ifndef _PIDGINDIALOGS_H_
26 #define _PIDGINDIALOGS_H_
27
28 #include "pidgin.h"
29
30 #include "account.h"
31 #include "conversation.h"
32
33 /* Functions in gtkdialogs.c (these should actually stay in this file) */
34 void pidgin_dialogs_destroy_all(void);
35 void pidgin_dialogs_about(void);
36 void pidgin_dialogs_buildinfo(void);
37 void pidgin_dialogs_developers(void);
38 void pidgin_dialogs_translators(void);
39 void pidgin_dialogs_plugins_info(void);
40 void pidgin_dialogs_im(void);
41 void pidgin_dialogs_im_with_user(PurpleAccount *, const char *);
42 void pidgin_dialogs_info(void);
43 void pidgin_dialogs_log(void);
44
45 #if !(defined PIDGIN_DISABLE_DEPRECATED) || (defined _PIDGIN_GTKDIALOGS_C_)
46
50 void pidgin_dialogs_alias_contact(PurpleContact *);
51 #endif
52
53 void pidgin_dialogs_alias_buddy(PurpleBuddy *);
54 void pidgin_dialogs_alias_chat(PurpleChat *);
55 void pidgin_dialogs_remove_buddy(PurpleBuddy *);
56 void pidgin_dialogs_remove_group(PurpleGroup *);
57 void pidgin_dialogs_remove_chat(PurpleChat *);
58 void pidgin_dialogs_remove_contact(PurpleContact *);
59 void pidgin_dialogs_merge_groups(PurpleGroup *, const char *);
60
61 /* Everything after this should probably be moved elsewhere */
62
63 #ifndef PIDGIN_DISABLE_DEPRECATED
64 /* This PIDGIN_DISABLE_DEPRECATED doesn't need to be deactivated by
65 * _PIDGIN_GTKDIALOGS_C_, because it shouldn't be using this macro. */
66 #define PIDGIN_DIALOG(x) x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \
67 gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG)
68 #endif
69
70 #define PIDGIN_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
71
72 #endif /* _PIDGINDIALOGS_H_ */
_PurpleGroup
A group.
Definition: blist.h:167
conversation.h
Conversation API.
_PurpleAccount
Structure representing an account.
Definition: account.h:169
_PurpleContact
A contact.
Definition: blist.h:153
pidgin.h
UI definitions and includes.
_PurpleChat
A chat.
Definition: blist.h:179
account.h
Account API.
_PurpleBuddy
A buddy.
Definition: blist.h:138