Sat, 18 Sep 2004 23:17:38 +0000
[gaim-migrate @ 10999]
" Post all three of these to the sf patch tracker as
three separate patches and assign the buddy list
changes and oscar changes to me, and the
gaim_status_is_online() changes to Luke. And in the
one assigned to Luke, ask him if he could pretty please
with sugar on top check through it quickly and
commit it if it looks sensible?
--KingAnt
This adds gaim_status_is_online so that we can check
statuses as well as presences for online status. It
also changes gaim_presence_is_online to use the new
function." --Dave West
committer: Luke Schierer <lschiere@pidgin.im>
| 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
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
25 | #ifndef _GAIM_GTKDIALOGS_H_ |
|
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
26 | #define _GAIM_GTKDIALOGS_H_ |
| 9709 | 27 | |
| 9791 | 28 | #include "gtkgaim.h" |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9714
diff
changeset
|
29 | |
| 9709 | 30 | #include "account.h" |
| 31 | #include "conversation.h" | |
| 32 | ||
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
33 | /* 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
|
34 | void gaim_gtkdialogs_destroy_all(); |
|
9753
5951fd24250e
[gaim-migrate @ 10620]
Mark Doliner <markdoliner@pidgin.im>
parents:
9730
diff
changeset
|
35 | void gaim_gtkdialogs_about(); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
36 | void gaim_gtkdialogs_im(); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
37 | void gaim_gtkdialogs_im_with_user(GaimAccount *, const char *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
38 | void gaim_gtkdialogs_info(); |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
39 | void gaim_gtkdialogs_log(); |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
40 | void gaim_gtkdialogs_warn(GaimConnection *, const char *); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
41 | void gaim_gtkdialogs_alias_contact(GaimContact *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
42 | void gaim_gtkdialogs_alias_buddy(GaimBuddy *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
43 | void gaim_gtkdialogs_alias_chat(GaimChat *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
44 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
45 | void gaim_gtkdialogs_remove_buddy(GaimBuddy *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
46 | void gaim_gtkdialogs_remove_group(GaimGroup *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
47 | void gaim_gtkdialogs_remove_chat(GaimChat *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
48 | void gaim_gtkdialogs_remove_contact(GaimContact *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
49 | |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
50 | /* Everything after this should probably be moved elsewhere */ |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
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 | #define DEFAULT_FONT_FACE "Helvetica" | |
| 62 | ||
| 63 | ||
| 64 | /* this is used for queuing messages received while away. This is really a UI function | |
| 65 | * which is why the struct is here. */ | |
| 66 | ||
| 67 | struct queued_message { | |
| 68 | char name[80]; | |
| 69 | char alias[80]; | |
| 70 | char *message; | |
| 71 | time_t tm; | |
| 72 | GaimAccount *account; | |
| 73 | GaimMessageFlags flags; | |
| 74 | }; | |
| 75 | ||
| 76 | struct smiley_theme { | |
| 77 | char *path; | |
| 78 | char *name; | |
| 79 | char *desc; | |
| 80 | char *icon; | |
| 81 | char *author; | |
| 82 | ||
| 83 | struct smiley_list *list; | |
| 84 | }; | |
| 85 | ||
| 86 | /* Globals in main.c */ | |
| 87 | extern GtkWidget *mainwindow; | |
| 88 | extern int docklet_count; | |
| 89 | ||
| 90 | /* Globals in themes.c */ | |
| 91 | extern struct smiley_theme *current_smiley_theme; | |
| 92 | extern GSList *smiley_themes; | |
| 93 | ||
| 94 | /* Functions in main.c */ | |
| 95 | extern void show_login(); | |
| 96 | extern void gaim_setup(GaimConnection *); | |
| 97 | ||
| 98 | /* Functions in session.c */ | |
| 99 | extern void session_init(gchar *, gchar *, gchar *); | |
| 100 | extern void session_end(); | |
| 101 | ||
| 102 | /* Functions in themes.c */ | |
| 103 | extern void smiley_themeize(GtkWidget *); | |
| 104 | extern void smiley_theme_probe(); | |
| 105 | extern void load_smiley_theme(const char *file, gboolean load); | |
| 106 | extern GSList *get_proto_smileys(const char *id); | |
| 107 | ||
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
108 | #endif /* _GAIM_GTKDIALOGS_H_ */ |