Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gtkdialogs.h

00001 
00025 #ifndef _GAIM_GTKDIALOGS_H_
00026 #define _GAIM_GTKDIALOGS_H_
00027 
00028 #include "gtkgaim.h"
00029 
00030 #include "account.h"
00031 #include "conversation.h"
00032 
00033 /* Functions in gtkdialogs.c (these should actually stay in this file) */
00034 void gaim_gtkdialogs_destroy_all();
00035 void gaim_gtkdialogs_about();
00036 void gaim_gtkdialogs_im();
00037 void gaim_gtkdialogs_im_with_user(GaimAccount *, const char *);
00038 void gaim_gtkdialogs_info();
00039 void gaim_gtkdialogs_log();
00040 void gaim_gtkdialogs_warn(GaimConnection *, const char *);
00041 void gaim_gtkdialogs_alias_contact(GaimContact *);
00042 void gaim_gtkdialogs_alias_buddy(GaimBuddy *);
00043 void gaim_gtkdialogs_alias_chat(GaimChat *);
00044 
00045 void gaim_gtkdialogs_remove_buddy(GaimBuddy *);
00046 void gaim_gtkdialogs_remove_group(GaimGroup *);
00047 void gaim_gtkdialogs_remove_chat(GaimChat *);
00048 void gaim_gtkdialogs_remove_contact(GaimContact *);
00049 
00050 /* Everything after this should probably be moved elsewhere */
00051 
00055 #define GAIM_GTK_UI "gtk-gaim"
00056 
00057 
00058 #define GAIM_DIALOG(x)  x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \
00059             gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG)
00060 #define GAIM_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
00061 
00062 //#define DEFAULT_FONT_FACE "Helvetica"
00063 #define DEFAULT_FONT_FACE "fixed"
00064 
00065 /* this is used for queuing messages received while away. This is really a UI function
00066  * which is why the struct is here. */
00067 
00068 struct queued_message {
00069     char name[80];
00070     char alias[80];
00071     char *message;
00072     time_t tm;
00073     GaimAccount *account;
00074     GaimMessageFlags flags;
00075 };
00076 
00077 struct smiley_theme {
00078     char *path;
00079     char *name;
00080     char *desc;
00081     char *icon;
00082     char *author;
00083     
00084     struct smiley_list *list;
00085 };
00086 
00087 /* Globals in main.c */
00088 extern GtkWidget *mainwindow;
00089 extern int docklet_count;
00090 
00091 /* Globals in themes.c */
00092 extern struct smiley_theme *current_smiley_theme;
00093 extern GSList *smiley_themes;
00094 
00095 /* Functions in main.c */
00096 extern void show_login();
00097 extern void gaim_setup(GaimConnection *);
00098 
00099 /* Functions in session.c */
00100 extern void session_init(gchar *, gchar *, gchar *);
00101 extern void session_end();
00102 
00103 /* Functions in themes.c */
00104 extern void smiley_themeize(GtkWidget *);
00105 extern void smiley_theme_probe();
00106 extern void load_smiley_theme(const char *file, gboolean load);
00107 extern GSList *get_proto_smileys(const char *id);
00108 
00109 #endif /* _GAIM_GTKDIALOGS_H_ */

Generated on Tue Aug 9 15:32:51 2005 for gaim by  doxygen 1.3.9.1