Thu, 18 Aug 2005 06:33:33 +0000
[gaim-migrate @ 13499]
Fix a C99ism.
| 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
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
24 | #ifndef _GAIM_GTKDIALOGS_H_ |
|
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
25 | #define _GAIM_GTKDIALOGS_H_ |
| 9709 | 26 | |
| 9791 | 27 | #include "gtkgaim.h" |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9714
diff
changeset
|
28 | |
| 9709 | 29 | #include "account.h" |
| 30 | #include "conversation.h" | |
| 31 | ||
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
32 | /* Functions in gtkdialogs.c (these should actually stay in this file) */ |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
33 | void gaim_gtkdialogs_destroy_all(); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
34 | void gaim_gtkdialogs_about(); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
35 | void gaim_gtkdialogs_im(); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
36 | void gaim_gtkdialogs_im_with_user(GaimAccount *, const char *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
37 | void gaim_gtkdialogs_info(); |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
38 | void gaim_gtkdialogs_log(); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
39 | void gaim_gtkdialogs_alias_contact(GaimContact *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
40 | void gaim_gtkdialogs_alias_buddy(GaimBuddy *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
41 | void gaim_gtkdialogs_alias_chat(GaimChat *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
42 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
43 | void gaim_gtkdialogs_remove_buddy(GaimBuddy *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
44 | void gaim_gtkdialogs_remove_group(GaimGroup *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
45 | void gaim_gtkdialogs_remove_chat(GaimChat *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
46 | void gaim_gtkdialogs_remove_contact(GaimContact *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
47 | |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
48 | /* Everything after this should probably be moved elsewhere */ |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
49 | |
| 9709 | 50 | /** |
| 51 | * Our UI's identifier. | |
| 52 | */ | |
| 53 | #define GAIM_DIALOG(x) x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \ | |
| 54 | gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG) | |
| 55 | #define GAIM_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED) | |
| 56 | ||
| 57 | ||
| 58 | /* this is used for queuing messages received while away. This is really a UI function | |
| 59 | * which is why the struct is here. */ | |
| 60 | ||
| 61 | struct queued_message { | |
| 62 | char name[80]; | |
| 63 | char alias[80]; | |
| 64 | char *message; | |
| 65 | time_t tm; | |
| 66 | GaimAccount *account; | |
| 67 | GaimMessageFlags flags; | |
| 68 | }; | |
| 69 | ||
| 70 | struct smiley_theme { | |
| 71 | char *path; | |
| 72 | char *name; | |
| 73 | char *desc; | |
| 74 | char *icon; | |
| 75 | char *author; | |
|
10133
f9d70220a53e
[gaim-migrate @ 11197]
Mark Doliner <markdoliner@pidgin.im>
parents:
10125
diff
changeset
|
76 | |
| 9709 | 77 | struct smiley_list *list; |
| 78 | }; | |
| 79 | ||
|
10302
8c73238fb5d4
[gaim-migrate @ 11487]
Mark Doliner <markdoliner@pidgin.im>
parents:
10133
diff
changeset
|
80 | /* Globals in gtkmain.c */ |
| 9709 | 81 | extern int docklet_count; |
| 82 | ||
|
10302
8c73238fb5d4
[gaim-migrate @ 11487]
Mark Doliner <markdoliner@pidgin.im>
parents:
10133
diff
changeset
|
83 | /* Globals in gtkthemes.c */ |
| 9709 | 84 | extern struct smiley_theme *current_smiley_theme; |
| 85 | extern GSList *smiley_themes; | |
| 86 | ||
| 87 | /* Functions in session.c */ | |
| 88 | extern void session_init(gchar *, gchar *, gchar *); | |
| 89 | extern void session_end(); | |
| 90 | ||
|
10302
8c73238fb5d4
[gaim-migrate @ 11487]
Mark Doliner <markdoliner@pidgin.im>
parents:
10133
diff
changeset
|
91 | /* Functions in gtkthemes.c */ |
| 9709 | 92 | extern void smiley_themeize(GtkWidget *); |
| 93 | extern void smiley_theme_probe(); | |
| 94 | extern void load_smiley_theme(const char *file, gboolean load); | |
| 95 | extern GSList *get_proto_smileys(const char *id); | |
| 96 | ||
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
97 | #endif /* _GAIM_GTKDIALOGS_H_ */ |