comparison plugins/gestures/gestures.c @ 11592:f21d4310717e

[gaim-migrate @ 13862] made the gestures plugin compile again, but didn't bother to test it committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Sun, 02 Oct 2005 21:16:05 +0000
parents 9b3833da6840
children fc464a0abccc
comparison
equal deleted inserted replaced
11591:9835c4c5800d 11592:f21d4310717e
54 54
55 static void 55 static void
56 stroke_prev_tab(GtkWidget *widget, void *data) 56 stroke_prev_tab(GtkWidget *widget, void *data)
57 { 57 {
58 GaimConversation *conv; 58 GaimConversation *conv;
59 GaimGtkConveration *gtkconv; 59 GaimGtkConversation *gtkconv;
60 GaimGtkWindow *win; 60 GaimGtkWindow *win;
61 GList *conversations; 61 GList *conversations;
62 62
63 conv = (GaimConversation *)data; 63 conv = (GaimConversation *)data;
64 gtkconv = GAIM_GTK_CONVERSATION(conv); 64 gtkconv = GAIM_GTK_CONVERSATION(conv);
85 85
86 static void 86 static void
87 stroke_next_tab(GtkWidget *widget, void *data) 87 stroke_next_tab(GtkWidget *widget, void *data)
88 { 88 {
89 GaimConversation *conv; 89 GaimConversation *conv;
90 GaimConvWindow *win; 90 GaimGtkWindow *win;
91 GList *conversations; 91 GList *conversations;
92 92
93 conv = (GaimConversation *)data; 93 conv = (GaimConversation *)data;
94 win = gaim_conversation_get_window(conv); 94 win = GAIM_GTK_CONVERSATION(conv)->win;
95 95
96 for (conversations = gaim_conv_window_get_conversations(win); 96 for (conversations = win->gtkconvs;
97 conversations != NULL; 97 conversations != NULL;
98 conversations = conversations->next) 98 conversations = conversations->next)
99 { 99 {
100 if (conversations->data == conv) 100 if (((GaimGtkConversation *)conversations->data)->active_conv == conv)
101 { 101 {
102 if (conversations->next != NULL) { 102 if (conversations->next != NULL) {
103 gaim_conv_window_switch_conversation(win, 103 gaim_gtk_conv_window_switch_gtkconv(win,
104 conversations->next->data); 104 conversations->next->data);
105 } else { 105 } else {
106 gaim_conv_window_switch_conversation(win, 106 gaim_gtk_conv_window_switch_gtkconv(win,
107 g_list_first(conversations)->data); 107 g_list_first(conversations)->data);
108 } 108 }
109 109
110 return; 110 return;
111 } 111 }
113 } 113 }
114 114
115 void 115 void
116 stroke_new_win(GtkWidget *widget, void *data) 116 stroke_new_win(GtkWidget *widget, void *data)
117 { 117 {
118 GaimConvWindow *new_win, *old_win; 118 GaimGtkWindow *new_win, *old_win;
119 GaimConversation *conv; 119 GaimConversation *conv;
120 120
121 conv = (GaimConversation *)data; 121 conv = (GaimConversation *)data;
122 old_win = gaim_conversation_get_window(conv); 122 old_win = GAIM_GTK_CONVERSATION(conv)->win;
123 123
124 if (gaim_conv_window_get_conversation_count(old_win) <= 1) 124 if (gaim_gtk_conv_window_get_gtkconv_count(old_win) <= 1)
125 return; 125 return;
126 126
127 new_win = gaim_conv_window_new(); 127 new_win = gaim_gtk_conv_window_new();
128 128
129 gaim_conv_window_remove_conversation(old_win, conv); 129 gaim_gtk_conv_window_remove_gtkconv(old_win, GAIM_GTK_CONVERSATION(conv));
130 gaim_conv_window_add_conversation(new_win, conv); 130 gaim_gtk_conv_window_add_gtkconv(new_win, GAIM_GTK_CONVERSATION(conv));
131 131
132 gaim_conv_window_show(new_win); 132 gaim_gtk_conv_window_show(new_win);
133 } 133 }
134 134
135 static void 135 static void
136 attach_signals(GaimConversation *conv) 136 attach_signals(GaimConversation *conv)
137 { 137 {