Mercurial > pidgin.yaz
comparison pidgin/plugins/gestures/gestures.c @ 32668:1223abf2eaf2
Fix the gestures plugin, which really only needed a widget from
which events could be obtained. It had no GtkIMHtml-specific code.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 23 Sep 2011 00:05:48 +0000 |
parents | 93876452633b |
children |
comparison
equal
deleted
inserted
replaced
32667:7b6ab83622db | 32668:1223abf2eaf2 |
---|---|
46 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) | 46 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) |
47 return; | 47 return; |
48 | 48 |
49 gtkconv = PIDGIN_CONVERSATION(conv); | 49 gtkconv = PIDGIN_CONVERSATION(conv); |
50 | 50 |
51 gstroke_cleanup(gtkconv->imhtml); | 51 gstroke_cleanup(gtkconv->webview); |
52 purple_conversation_destroy(conv); | 52 purple_conversation_destroy(conv); |
53 } | 53 } |
54 | 54 |
55 static void | 55 static void |
56 switch_page(PidginWindow *win, GtkDirectionType dir) | 56 switch_page(PidginWindow *win, GtkDirectionType dir) |
124 { | 124 { |
125 PidginConversation *gtkconv; | 125 PidginConversation *gtkconv; |
126 | 126 |
127 gtkconv = PIDGIN_CONVERSATION(conv); | 127 gtkconv = PIDGIN_CONVERSATION(conv); |
128 | 128 |
129 gstroke_enable(gtkconv->imhtml); | 129 gstroke_enable(gtkconv->webview); |
130 gstroke_signal_connect(gtkconv->imhtml, "14789", stroke_close, conv); | 130 gstroke_signal_connect(gtkconv->webview, "14789", stroke_close, conv); |
131 gstroke_signal_connect(gtkconv->imhtml, "1456", stroke_close, conv); | 131 gstroke_signal_connect(gtkconv->webview, "1456", stroke_close, conv); |
132 gstroke_signal_connect(gtkconv->imhtml, "1489", stroke_close, conv); | 132 gstroke_signal_connect(gtkconv->webview, "1489", stroke_close, conv); |
133 gstroke_signal_connect(gtkconv->imhtml, "74123", stroke_next_tab, conv); | 133 gstroke_signal_connect(gtkconv->webview, "74123", stroke_next_tab, conv); |
134 gstroke_signal_connect(gtkconv->imhtml, "7456", stroke_next_tab, conv); | 134 gstroke_signal_connect(gtkconv->webview, "7456", stroke_next_tab, conv); |
135 gstroke_signal_connect(gtkconv->imhtml, "96321", stroke_prev_tab, conv); | 135 gstroke_signal_connect(gtkconv->webview, "96321", stroke_prev_tab, conv); |
136 gstroke_signal_connect(gtkconv->imhtml, "9654", stroke_prev_tab, conv); | 136 gstroke_signal_connect(gtkconv->webview, "9654", stroke_prev_tab, conv); |
137 gstroke_signal_connect(gtkconv->imhtml, "25852", stroke_new_win, conv); | 137 gstroke_signal_connect(gtkconv->webview, "25852", stroke_new_win, conv); |
138 } | 138 } |
139 | 139 |
140 static void | 140 static void |
141 new_conv_cb(PurpleConversation *conv) | 141 new_conv_cb(PurpleConversation *conv) |
142 { | 142 { |
213 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) | 213 if (!PIDGIN_IS_PIDGIN_CONVERSATION(conv)) |
214 continue; | 214 continue; |
215 | 215 |
216 gtkconv = PIDGIN_CONVERSATION(conv); | 216 gtkconv = PIDGIN_CONVERSATION(conv); |
217 | 217 |
218 gstroke_cleanup(gtkconv->imhtml); | 218 gstroke_cleanup(gtkconv->webview); |
219 gstroke_disable(gtkconv->imhtml); | 219 gstroke_disable(gtkconv->webview); |
220 } | 220 } |
221 | 221 |
222 return TRUE; | 222 return TRUE; |
223 } | 223 } |
224 | 224 |