# HG changeset patch # User Elliott Sales de Andrade # Date 1316736348 0 # Node ID 1223abf2eaf2c4812ae8dba710c932c1a4d65572 # Parent 7b6ab83622db683eae25829102d6b3e1ef2c8205 Fix the gestures plugin, which really only needed a widget from which events could be obtained. It had no GtkIMHtml-specific code. diff -r 7b6ab83622db -r 1223abf2eaf2 pidgin/plugins/Makefile.am --- a/pidgin/plugins/Makefile.am Thu Sep 22 23:49:39 2011 +0000 +++ b/pidgin/plugins/Makefile.am Fri Sep 23 00:05:48 2011 +0000 @@ -16,6 +16,9 @@ PERL_DIR = perl endif +if ENABLE_GESTURES +GESTURE_DIR = gestures +endif SUBDIRS = \ $(CAP_DIR) \ diff -r 7b6ab83622db -r 1223abf2eaf2 pidgin/plugins/gestures/gestures.c --- a/pidgin/plugins/gestures/gestures.c Thu Sep 22 23:49:39 2011 +0000 +++ b/pidgin/plugins/gestures/gestures.c Fri Sep 23 00:05:48 2011 +0000 @@ -48,7 +48,7 @@ gtkconv = PIDGIN_CONVERSATION(conv); - gstroke_cleanup(gtkconv->imhtml); + gstroke_cleanup(gtkconv->webview); purple_conversation_destroy(conv); } @@ -126,15 +126,15 @@ gtkconv = PIDGIN_CONVERSATION(conv); - gstroke_enable(gtkconv->imhtml); - gstroke_signal_connect(gtkconv->imhtml, "14789", stroke_close, conv); - gstroke_signal_connect(gtkconv->imhtml, "1456", stroke_close, conv); - gstroke_signal_connect(gtkconv->imhtml, "1489", stroke_close, conv); - gstroke_signal_connect(gtkconv->imhtml, "74123", stroke_next_tab, conv); - gstroke_signal_connect(gtkconv->imhtml, "7456", stroke_next_tab, conv); - gstroke_signal_connect(gtkconv->imhtml, "96321", stroke_prev_tab, conv); - gstroke_signal_connect(gtkconv->imhtml, "9654", stroke_prev_tab, conv); - gstroke_signal_connect(gtkconv->imhtml, "25852", stroke_new_win, conv); + gstroke_enable(gtkconv->webview); + gstroke_signal_connect(gtkconv->webview, "14789", stroke_close, conv); + gstroke_signal_connect(gtkconv->webview, "1456", stroke_close, conv); + gstroke_signal_connect(gtkconv->webview, "1489", stroke_close, conv); + gstroke_signal_connect(gtkconv->webview, "74123", stroke_next_tab, conv); + gstroke_signal_connect(gtkconv->webview, "7456", stroke_next_tab, conv); + gstroke_signal_connect(gtkconv->webview, "96321", stroke_prev_tab, conv); + gstroke_signal_connect(gtkconv->webview, "9654", stroke_prev_tab, conv); + gstroke_signal_connect(gtkconv->webview, "25852", stroke_new_win, conv); } static void @@ -215,8 +215,8 @@ gtkconv = PIDGIN_CONVERSATION(conv); - gstroke_cleanup(gtkconv->imhtml); - gstroke_disable(gtkconv->imhtml); + gstroke_cleanup(gtkconv->webview); + gstroke_disable(gtkconv->webview); } return TRUE;