gtkdialogs.h

00001 
00005 /* pidgin
00006  *
00007  * Pidgin is the legal property of its developers, whose names are too numerous
00008  * to list here.  Please refer to the COPYRIGHT file distributed with this
00009  * source distribution.
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00024  */
00025 #ifndef _PIDGINDIALOGS_H_
00026 #define _PIDGINDIALOGS_H_
00027 
00028 #include "pidgin.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 pidgin_dialogs_destroy_all(void);
00035 void pidgin_dialogs_about(void);
00036 void pidgin_dialogs_im(void);
00037 void pidgin_dialogs_im_with_user(PurpleAccount *, const char *);
00038 void pidgin_dialogs_info(void);
00039 void pidgin_dialogs_log(void);
00040 
00041 #if !(defined PIDGIN_DISABLE_DEPRECATED) || (defined _PIDGIN_GTKDIALOGS_C_)
00042 
00046 void pidgin_dialogs_alias_contact(PurpleContact *);
00047 #endif
00048 
00049 void pidgin_dialogs_alias_buddy(PurpleBuddy *);
00050 void pidgin_dialogs_alias_chat(PurpleChat *);
00051 void pidgin_dialogs_remove_buddy(PurpleBuddy *);
00052 void pidgin_dialogs_remove_group(PurpleGroup *);
00053 void pidgin_dialogs_remove_chat(PurpleChat *);
00054 void pidgin_dialogs_remove_contact(PurpleContact *);
00055 void pidgin_dialogs_merge_groups(PurpleGroup *, const char *);
00056 
00057 /* Everything after this should probably be moved elsewhere */
00058 
00059 #ifndef PIDGIN_DISABLE_DEPRECATED
00060 /* This PIDGIN_DISABLE_DEPRECATED doesn't need to be deactivated by
00061  * _PIDGIN_GTKDIALOGS_C_, because it shouldn't be using this macro. */
00062 #define PIDGIN_DIALOG(x)    x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \
00063             gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG)
00064 #endif
00065 
00066 #define PIDGIN_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
00067 
00068 #endif /* _PIDGINDIALOGS_H_ */