Mercurial > pidgin.yaz
diff plugins/gestures/gestures.c @ 7118:bf630f7dfdcd
[gaim-migrate @ 7685]
Here's a commit that I think will make faceprint happy. GaimWindow ->
GaimConvWindow, GaimIm -> GaimConvIm, GaimChat -> GaimConvChat,
GaimBlistChat -> GaimChat, and updated the API functions as well. Plugin
authors are going to hunt me down and murder me. I can feel it..
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 02 Oct 2003 02:54:07 +0000 |
parents | 70d5122bc3ff |
children | 414c701ef1ff |
line wrap: on
line diff
--- a/plugins/gestures/gestures.c Thu Oct 02 02:15:36 2003 +0000 +++ b/plugins/gestures/gestures.c Thu Oct 02 02:54:07 2003 +0000 @@ -55,7 +55,7 @@ stroke_prev_tab(GtkWidget *widget, void *data) { GaimConversation *conv; - GaimWindow *win; + GaimConvWindow *win; unsigned int index; conv = (GaimConversation *)data; @@ -63,50 +63,50 @@ index = gaim_conversation_get_index(conv); if (index == 0) - index = gaim_window_get_conversation_count(win) - 1; + index = gaim_conv_window_get_conversation_count(win) - 1; else index--; - gaim_window_switch_conversation(win, index); + gaim_conv_window_switch_conversation(win, index); } static void stroke_next_tab(GtkWidget *widget, void *data) { GaimConversation *conv; - GaimWindow *win; + GaimConvWindow *win; unsigned int index; conv = (GaimConversation *)data; win = gaim_conversation_get_window(conv); index = gaim_conversation_get_index(conv); - if (index == gaim_window_get_conversation_count(win) - 1) + if (index == gaim_conv_window_get_conversation_count(win) - 1) index = 0; else index++; - gaim_window_switch_conversation(win, index); + gaim_conv_window_switch_conversation(win, index); } void stroke_new_win(GtkWidget *widget, void *data) { - GaimWindow *new_win, *old_win; + GaimConvWindow *new_win, *old_win; GaimConversation *conv; conv = (GaimConversation *)data; old_win = gaim_conversation_get_window(conv); - if (gaim_window_get_conversation_count(old_win) <= 1) + if (gaim_conv_window_get_conversation_count(old_win) <= 1) return; - new_win = gaim_window_new(); + new_win = gaim_conv_window_new(); - gaim_window_remove_conversation(old_win, gaim_conversation_get_index(conv)); - gaim_window_add_conversation(new_win, conv); + gaim_conv_window_remove_conversation(old_win, gaim_conversation_get_index(conv)); + gaim_conv_window_add_conversation(new_win, conv); - gaim_window_show(new_win); + gaim_conv_window_show(new_win); } static void