Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 7117:943085b0ff8b | 7118:bf630f7dfdcd |
|---|---|
| 53 | 53 |
| 54 static void | 54 static void |
| 55 stroke_prev_tab(GtkWidget *widget, void *data) | 55 stroke_prev_tab(GtkWidget *widget, void *data) |
| 56 { | 56 { |
| 57 GaimConversation *conv; | 57 GaimConversation *conv; |
| 58 GaimWindow *win; | 58 GaimConvWindow *win; |
| 59 unsigned int index; | 59 unsigned int index; |
| 60 | 60 |
| 61 conv = (GaimConversation *)data; | 61 conv = (GaimConversation *)data; |
| 62 win = gaim_conversation_get_window(conv); | 62 win = gaim_conversation_get_window(conv); |
| 63 index = gaim_conversation_get_index(conv); | 63 index = gaim_conversation_get_index(conv); |
| 64 | 64 |
| 65 if (index == 0) | 65 if (index == 0) |
| 66 index = gaim_window_get_conversation_count(win) - 1; | 66 index = gaim_conv_window_get_conversation_count(win) - 1; |
| 67 else | 67 else |
| 68 index--; | 68 index--; |
| 69 | 69 |
| 70 gaim_window_switch_conversation(win, index); | 70 gaim_conv_window_switch_conversation(win, index); |
| 71 } | 71 } |
| 72 | 72 |
| 73 static void | 73 static void |
| 74 stroke_next_tab(GtkWidget *widget, void *data) | 74 stroke_next_tab(GtkWidget *widget, void *data) |
| 75 { | 75 { |
| 76 GaimConversation *conv; | 76 GaimConversation *conv; |
| 77 GaimWindow *win; | 77 GaimConvWindow *win; |
| 78 unsigned int index; | 78 unsigned int index; |
| 79 | 79 |
| 80 conv = (GaimConversation *)data; | 80 conv = (GaimConversation *)data; |
| 81 win = gaim_conversation_get_window(conv); | 81 win = gaim_conversation_get_window(conv); |
| 82 index = gaim_conversation_get_index(conv); | 82 index = gaim_conversation_get_index(conv); |
| 83 | 83 |
| 84 if (index == gaim_window_get_conversation_count(win) - 1) | 84 if (index == gaim_conv_window_get_conversation_count(win) - 1) |
| 85 index = 0; | 85 index = 0; |
| 86 else | 86 else |
| 87 index++; | 87 index++; |
| 88 | 88 |
| 89 gaim_window_switch_conversation(win, index); | 89 gaim_conv_window_switch_conversation(win, index); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void | 92 void |
| 93 stroke_new_win(GtkWidget *widget, void *data) | 93 stroke_new_win(GtkWidget *widget, void *data) |
| 94 { | 94 { |
| 95 GaimWindow *new_win, *old_win; | 95 GaimConvWindow *new_win, *old_win; |
| 96 GaimConversation *conv; | 96 GaimConversation *conv; |
| 97 | 97 |
| 98 conv = (GaimConversation *)data; | 98 conv = (GaimConversation *)data; |
| 99 old_win = gaim_conversation_get_window(conv); | 99 old_win = gaim_conversation_get_window(conv); |
| 100 | 100 |
| 101 if (gaim_window_get_conversation_count(old_win) <= 1) | 101 if (gaim_conv_window_get_conversation_count(old_win) <= 1) |
| 102 return; | 102 return; |
| 103 | 103 |
| 104 new_win = gaim_window_new(); | 104 new_win = gaim_conv_window_new(); |
| 105 | 105 |
| 106 gaim_window_remove_conversation(old_win, gaim_conversation_get_index(conv)); | 106 gaim_conv_window_remove_conversation(old_win, gaim_conversation_get_index(conv)); |
| 107 gaim_window_add_conversation(new_win, conv); | 107 gaim_conv_window_add_conversation(new_win, conv); |
| 108 | 108 |
| 109 gaim_window_show(new_win); | 109 gaim_conv_window_show(new_win); |
| 110 } | 110 } |
| 111 | 111 |
| 112 static void | 112 static void |
| 113 attach_signals(GaimConversation *conv) | 113 attach_signals(GaimConversation *conv) |
| 114 { | 114 { |
