comparison pidgin/gtkconv.h @ 15501:d75099d2567e

gaim_gtk to pidgin. I hope
author Sean Egan <seanegan@gmail.com>
date Sat, 03 Feb 2007 07:23:11 +0000
parents 5fe8042783c1
children 6fde15c1dcfc
comparison
equal deleted inserted replaced
15500:45ecefd0ce3a 15501: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_H_ 25 #ifndef _PIDGINCONVERSATION_H_
26 #define _GAIM_GTKCONVERSATION_H_ 26 #define _PIDGINCONVERSATION_H_
27 27
28 typedef struct _GaimGtkImPane GaimGtkImPane; 28 typedef struct _PidginImPane PidginImPane;
29 typedef struct _GaimGtkChatPane GaimGtkChatPane; 29 typedef struct _PidginChatPane PidginChatPane;
30 typedef struct _GaimGtkConversation GaimGtkConversation; 30 typedef struct _PidginConversation PidginConversation;
31 31
32 /** 32 /**
33 * Unseen text states. 33 * Unseen text states.
34 */ 34 */
35 typedef enum 35 typedef enum
50 CHAT_USERS_COLOR_COLUMN, 50 CHAT_USERS_COLOR_COLUMN,
51 CHAT_USERS_WEIGHT_COLUMN, 51 CHAT_USERS_WEIGHT_COLUMN,
52 CHAT_USERS_COLUMNS 52 CHAT_USERS_COLUMNS
53 }; 53 };
54 54
55 #define GAIM_GTK_CONVERSATION(conv) \ 55 #define PIDGIN_CONVERSATION(conv) \
56 ((GaimGtkConversation *)(conv)->ui_data) 56 ((PidginConversation *)(conv)->ui_data)
57 57
58 #define GAIM_IS_GTK_CONVERSATION(conv) \ 58 #define GAIM_IS_GTK_CONVERSATION(conv) \
59 (gaim_conversation_get_ui_ops(conv) == \ 59 (gaim_conversation_get_ui_ops(conv) == \
60 gaim_gtk_conversations_get_conv_ui_ops()) 60 pidgin_conversations_get_conv_ui_ops())
61 61
62 #include "gtkgaim.h" 62 #include "gtkgaim.h"
63 #include "conversation.h" 63 #include "conversation.h"
64 #include "gtkconvwin.h" 64 #include "gtkconvwin.h"
65 65
74 */ 74 */
75 75
76 /** 76 /**
77 * A GTK+ Instant Message pane. 77 * A GTK+ Instant Message pane.
78 */ 78 */
79 struct _GaimGtkImPane 79 struct _PidginImPane
80 { 80 {
81 GtkWidget *block; 81 GtkWidget *block;
82 GtkWidget *send_file; 82 GtkWidget *send_file;
83 GtkWidget *sep1; 83 GtkWidget *sep1;
84 GtkWidget *sep2; 84 GtkWidget *sep2;
96 }; 96 };
97 97
98 /** 98 /**
99 * GTK+ Chat panes. 99 * GTK+ Chat panes.
100 */ 100 */
101 struct _GaimGtkChatPane 101 struct _PidginChatPane
102 { 102 {
103 GtkWidget *count; 103 GtkWidget *count;
104 GtkWidget *list; 104 GtkWidget *list;
105 GtkWidget *topic_text; 105 GtkWidget *topic_text;
106 }; 106 };
107 107
108 /** 108 /**
109 * A GTK+ conversation pane. 109 * A GTK+ conversation pane.
110 */ 110 */
111 struct _GaimGtkConversation 111 struct _PidginConversation
112 { 112 {
113 GaimConversation *active_conv; 113 GaimConversation *active_conv;
114 GList *convs; 114 GList *convs;
115 GList *send_history; 115 GList *send_history;
116 116
117 GaimGtkWindow *win; 117 PidginWindow *win;
118 118
119 gboolean make_sound; 119 gboolean make_sound;
120 120
121 GtkTooltips *tooltips; 121 GtkTooltips *tooltips;
122 122
149 GaimUnseenState unseen_state; 149 GaimUnseenState unseen_state;
150 guint unseen_count; 150 guint unseen_count;
151 151
152 union 152 union
153 { 153 {
154 GaimGtkImPane *im; 154 PidginImPane *im;
155 GaimGtkChatPane *chat; 155 PidginChatPane *chat;
156 156
157 } u; 157 } u;
158 }; 158 };
159 159
160 /*@}*/ 160 /*@}*/
167 /** 167 /**
168 * Returns the UI operations structure for GTK+ conversations. 168 * Returns the UI operations structure for GTK+ conversations.
169 * 169 *
170 * @return The GTK+ conversation operations structure. 170 * @return The GTK+ conversation operations structure.
171 */ 171 */
172 GaimConversationUiOps *gaim_gtk_conversations_get_conv_ui_ops(void); 172 GaimConversationUiOps *pidgin_conversations_get_conv_ui_ops(void);
173 173
174 /** 174 /**
175 * Updates the buddy icon on a conversation. 175 * Updates the buddy icon on a conversation.
176 * 176 *
177 * @param conv The conversation. 177 * @param conv The conversation.
178 */ 178 */
179 void gaim_gtkconv_update_buddy_icon(GaimConversation *conv); 179 void pidginconv_update_buddy_icon(GaimConversation *conv);
180 180
181 /** 181 /**
182 * Sets the active conversation within a GTK-conversation. 182 * Sets the active conversation within a GTK-conversation.
183 * 183 *
184 * @param conv The conversation 184 * @param conv The conversation
185 */ 185 */
186 void gaim_gtkconv_switch_active_conversation(GaimConversation *conv); 186 void pidginconv_switch_active_conversation(GaimConversation *conv);
187 187
188 /** 188 /**
189 * Updates conversation buttons by protocol. 189 * Updates conversation buttons by protocol.
190 * 190 *
191 * @param conv The conversation. 191 * @param conv The conversation.
192 */ 192 */
193 void gaim_gtkconv_update_buttons_by_protocol(GaimConversation *conv); 193 void pidginconv_update_buttons_by_protocol(GaimConversation *conv);
194 194
195 /** 195 /**
196 * Returns a list of conversations of the given type which have an unseen 196 * Returns a list of conversations of the given type which have an unseen
197 * state greater than or equal to the specified minimum state. Using the 197 * state greater than or equal to the specified minimum state. Using the
198 * hidden_only parameter, this search can be limited to hidden 198 * hidden_only parameter, this search can be limited to hidden
206 * @param max_count Maximum number of conversations to return, or 0 for 206 * @param max_count Maximum number of conversations to return, or 0 for
207 * no maximum. 207 * no maximum.
208 * @return List of GaimConversation matching criteria, or NULL. 208 * @return List of GaimConversation matching criteria, or NULL.
209 */ 209 */
210 GList * 210 GList *
211 gaim_gtk_conversations_find_unseen_list(GaimConversationType type, 211 pidgin_conversations_find_unseen_list(GaimConversationType type,
212 GaimUnseenState min_state, 212 GaimUnseenState min_state,
213 gboolean hidden_only, 213 gboolean hidden_only,
214 guint max_count); 214 guint max_count);
215 215
216 /** 216 /**
220 * @param menu Menu widget to add items to. 220 * @param menu Menu widget to add items to.
221 * @param convs List of GaimConversation to add to menu. 221 * @param convs List of GaimConversation to add to menu.
222 * @return Number of conversations added to menu. 222 * @return Number of conversations added to menu.
223 */ 223 */
224 guint 224 guint
225 gaim_gtk_conversations_fill_menu(GtkWidget *menu, GList *convs); 225 pidgin_conversations_fill_menu(GtkWidget *menu, GList *convs);
226 226
227 /** 227 /**
228 * Presents a gaim conversation to the user. 228 * Presents a gaim conversation to the user.
229 * 229 *
230 * @param conv The conversation. 230 * @param conv The conversation.
231 */ 231 */
232 void gaim_gtkconv_present_conversation(GaimConversation *conv); 232 void pidginconv_present_conversation(GaimConversation *conv);
233 233
234 GaimGtkWindow *gaim_gtkconv_get_window(GaimGtkConversation *gtkconv); 234 PidginWindow *pidginconv_get_window(PidginConversation *gtkconv);
235 GdkPixbuf *gaim_gtkconv_get_tab_icon(GaimConversation *conv, gboolean small_icon); 235 GdkPixbuf *pidginconv_get_tab_icon(GaimConversation *conv, gboolean small_icon);
236 void gaim_gtkconv_new(GaimConversation *conv); 236 void pidginconv_new(GaimConversation *conv);
237 int gaim_gtkconv_get_tab_at_xy(GaimGtkWindow *win, int x, int y, gboolean *to_right); 237 int pidginconv_get_tab_at_xy(PidginWindow *win, int x, int y, gboolean *to_right);
238 gboolean gaim_gtkconv_is_hidden(GaimGtkConversation *gtkconv); 238 gboolean pidginconv_is_hidden(PidginConversation *gtkconv);
239 /*@}*/ 239 /*@}*/
240 240
241 /**************************************************************************/ 241 /**************************************************************************/
242 /** @name GTK+ Conversations Subsystem */ 242 /** @name GTK+ Conversations Subsystem */
243 /**************************************************************************/ 243 /**************************************************************************/
246 /** 246 /**
247 * Returns the gtk conversations subsystem handle. 247 * Returns the gtk conversations subsystem handle.
248 * 248 *
249 * @return The conversations subsystem handle. 249 * @return The conversations subsystem handle.
250 */ 250 */
251 void *gaim_gtk_conversations_get_handle(void); 251 void *pidgin_conversations_get_handle(void);
252 252
253 /** 253 /**
254 * Initializes the GTK+ conversations subsystem. 254 * Initializes the GTK+ conversations subsystem.
255 */ 255 */
256 void gaim_gtk_conversations_init(void); 256 void pidgin_conversations_init(void);
257 257
258 /** 258 /**
259 * Uninitialized the GTK+ conversation subsystem. 259 * Uninitialized the GTK+ conversation subsystem.
260 */ 260 */
261 void gaim_gtk_conversations_uninit(void); 261 void pidgin_conversations_uninit(void);
262 262
263 /*@}*/ 263 /*@}*/
264 264
265 #endif /* _GAIM_GTKCONVERSATION_H_ */ 265 #endif /* _PIDGINCONVERSATION_H_ */