Mon, 09 Aug 2004 03:49:46 +0000
[gaim-migrate @ 10591]
I shuffled lots of stuff around again.
See plugins/ChangeLog.API for the list of renamed functions.
I'm trying to clean up gtkdialogs.c/.h, so I moved the away stuff
into away.c/.h
I also reduced the minimum buddy list height from 200 pixels to
100 pixels. I just realized that that's also the default height
used when you don't have a prefs.xml, which is bad. I think I'm
going to set the default height to around 300 pixels.
| 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 | |
|
9718
aeee69c6c784
[gaim-migrate @ 10579]
Mark Doliner <markdoliner@pidgin.im>
parents:
9714
diff
changeset
|
28 | #include "gtkinternal.h" |
|
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(); |
|
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(); |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
39 | void gaim_gtkdialogs_warn(GaimConnection *, const char *); |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
40 | void gaim_gtkdialogs_alias_contact(GaimContact *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
41 | void gaim_gtkdialogs_alias_buddy(GaimBuddy *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
42 | void gaim_gtkdialogs_alias_chat(GaimChat *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
43 | |
|
9730
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
44 | void gaim_gtkdialogs_remove_buddy(GaimBuddy *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
45 | void gaim_gtkdialogs_remove_group(GaimGroup *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
46 | void gaim_gtkdialogs_remove_chat(GaimChat *); |
|
e59812364b8b
[gaim-migrate @ 10591]
Mark Doliner <markdoliner@pidgin.im>
parents:
9728
diff
changeset
|
47 | void gaim_gtkdialogs_remove_contact(GaimContact *); |
|
9714
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
48 | |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
49 | /* Functions in about.c */ |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
50 | extern void show_about(GtkWidget *, void *); |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
51 | |
|
589046af53cb
[gaim-migrate @ 10575]
Mark Doliner <markdoliner@pidgin.im>
parents:
9713
diff
changeset
|
52 | /* Everything after this should probably be moved elsewhere */ |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
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
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9709
diff
changeset
|
111 | #endif /* _GAIM_GTKDIALOGS_H_ */ |