comparison pidgin/gtkconvwin.h @ 15500:d75099d2567e

gaim_gtk to pidgin. I hope
author Sean Egan <seanegan@gmail.com>
date Sat, 03 Feb 2007 07:23:11 +0000
parents c9497aad9fc4
children 6fde15c1dcfc
comparison
equal deleted inserted replaced
15499:45ecefd0ce3a 15500:d75099d2567e
20 * 20 *
21 * You should have received a copy of the GNU General Public License 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 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 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 */ 24 */
25 #ifndef _GAIM_GTKCONVERSATION_WINDOW_H_ 25 #ifndef _PIDGINCONVERSATION_WINDOW_H_
26 #define _GAIM_GTKCONVERSATION_WINDOW_H_ 26 #define _PIDGINCONVERSATION_WINDOW_H_
27 27
28 typedef struct _GaimGtkWindow GaimGtkWindow; 28 typedef struct _PidginWindow PidginWindow;
29 29
30 30
31 /************************************************************************** 31 /**************************************************************************
32 * @name Structures 32 * @name Structures
33 **************************************************************************/ 33 **************************************************************************/
35 35
36 /** 36 /**
37 * A GTK+ representation of a graphical window containing one or more 37 * A GTK+ representation of a graphical window containing one or more
38 * conversations. 38 * conversations.
39 */ 39 */
40 struct _GaimGtkWindow 40 struct _PidginWindow
41 { 41 {
42 GtkWidget *window; /**< The window. */ 42 GtkWidget *window; /**< The window. */
43 GtkWidget *notebook; /**< The notebook of conversations. */ 43 GtkWidget *notebook; /**< The notebook of conversations. */
44 GList *gtkconvs; 44 GList *gtkconvs;
45 45
102 /************************************************************************** 102 /**************************************************************************
103 * @name GTK+ Conversation Window API 103 * @name GTK+ Conversation Window API
104 **************************************************************************/ 104 **************************************************************************/
105 /*@{*/ 105 /*@{*/
106 106
107 GaimGtkWindow * gaim_gtk_conv_window_new(void); 107 PidginWindow * pidgin_conv_window_new(void);
108 void gaim_gtk_conv_window_destroy(GaimGtkWindow *win); 108 void pidgin_conv_window_destroy(PidginWindow *win);
109 GList *gaim_gtk_conv_windows_get_list(void); 109 GList *pidgin_conv_windows_get_list(void);
110 void gaim_gtk_conv_window_show(GaimGtkWindow *win); 110 void pidgin_conv_window_show(PidginWindow *win);
111 void gaim_gtk_conv_window_hide(GaimGtkWindow *win); 111 void pidgin_conv_window_hide(PidginWindow *win);
112 void gaim_gtk_conv_window_raise(GaimGtkWindow *win); 112 void pidgin_conv_window_raise(PidginWindow *win);
113 void gaim_gtk_conv_window_switch_gtkconv(GaimGtkWindow *win, GaimGtkConversation *gtkconv); 113 void pidgin_conv_window_switch_gtkconv(PidginWindow *win, PidginConversation *gtkconv);
114 void gaim_gtk_conv_window_add_gtkconv(GaimGtkWindow *win, GaimGtkConversation *gtkconv); 114 void pidgin_conv_window_add_gtkconv(PidginWindow *win, PidginConversation *gtkconv);
115 void gaim_gtk_conv_window_remove_gtkconv(GaimGtkWindow *win, GaimGtkConversation *gtkconv); 115 void pidgin_conv_window_remove_gtkconv(PidginWindow *win, PidginConversation *gtkconv);
116 GaimGtkConversation *gaim_gtk_conv_window_get_gtkconv_at_index(const GaimGtkWindow *win, int index); 116 PidginConversation *pidgin_conv_window_get_gtkconv_at_index(const PidginWindow *win, int index);
117 GaimGtkConversation *gaim_gtk_conv_window_get_active_gtkconv(const GaimGtkWindow *win); 117 PidginConversation *pidgin_conv_window_get_active_gtkconv(const PidginWindow *win);
118 GaimConversation *gaim_gtk_conv_window_get_active_conversation(const GaimGtkWindow *win); 118 GaimConversation *pidgin_conv_window_get_active_conversation(const PidginWindow *win);
119 gboolean gaim_gtk_conv_window_is_active_conversation(const GaimConversation *conv); 119 gboolean pidgin_conv_window_is_active_conversation(const GaimConversation *conv);
120 gboolean gaim_gtk_conv_window_has_focus(GaimGtkWindow *win); 120 gboolean pidgin_conv_window_has_focus(PidginWindow *win);
121 GaimGtkWindow *gaim_gtk_conv_window_get_at_xy(int x, int y); 121 PidginWindow *pidgin_conv_window_get_at_xy(int x, int y);
122 GList *gaim_gtk_conv_window_get_gtkconvs(GaimGtkWindow *win); 122 GList *pidgin_conv_window_get_gtkconvs(PidginWindow *win);
123 guint gaim_gtk_conv_window_get_gtkconv_count(GaimGtkWindow *win); 123 guint pidgin_conv_window_get_gtkconv_count(PidginWindow *win);
124 124
125 GaimGtkWindow *gaim_gtk_conv_window_first_with_type(GaimConversationType type); 125 PidginWindow *pidgin_conv_window_first_with_type(GaimConversationType type);
126 GaimGtkWindow *gaim_gtk_conv_window_last_with_type(GaimConversationType type); 126 PidginWindow *pidgin_conv_window_last_with_type(GaimConversationType type);
127 127
128 /*@}*/ 128 /*@}*/
129 129
130 /************************************************************************** 130 /**************************************************************************
131 * @name GTK+ Conversation Placement API 131 * @name GTK+ Conversation Placement API
132 **************************************************************************/ 132 **************************************************************************/
133 /*@{*/ 133 /*@{*/
134 134
135 typedef void (*GaimConvPlacementFunc)(GaimGtkConversation *); 135 typedef void (*GaimConvPlacementFunc)(PidginConversation *);
136 136
137 GList *gaim_gtkconv_placement_get_options(void); 137 GList *pidginconv_placement_get_options(void);
138 void gaim_gtkconv_placement_add_fnc(const char *id, const char *name, GaimConvPlacementFunc fnc); 138 void pidginconv_placement_add_fnc(const char *id, const char *name, GaimConvPlacementFunc fnc);
139 void gaim_gtkconv_placement_remove_fnc(const char *id); 139 void pidginconv_placement_remove_fnc(const char *id);
140 const char *gaim_gtkconv_placement_get_name(const char *id); 140 const char *pidginconv_placement_get_name(const char *id);
141 GaimConvPlacementFunc gaim_gtkconv_placement_get_fnc(const char *id); 141 GaimConvPlacementFunc pidginconv_placement_get_fnc(const char *id);
142 void gaim_gtkconv_placement_set_current_func(GaimConvPlacementFunc func); 142 void pidginconv_placement_set_current_func(GaimConvPlacementFunc func);
143 GaimConvPlacementFunc gaim_gtkconv_placement_get_current_func(void); 143 GaimConvPlacementFunc pidginconv_placement_get_current_func(void);
144 void gaim_gtkconv_placement_place(GaimGtkConversation *gtkconv); 144 void pidginconv_placement_place(PidginConversation *gtkconv);
145 145
146 /*@}*/ 146 /*@}*/
147 147
148 #endif /* _GAIM_GTKCONVERSATION_WINDOW_H_ */ 148 #endif /* _PIDGINCONVERSATION_WINDOW_H_ */