« Return to Thread: [PATCH] Provide buttons on the mode-line for basic browser control.

[PATCH] buttons: use interactive_context

by David Kettler-2 :: Rate this Message:

Reply to Author | View in Thread

Squash onto parent (Provide buttons on the mode-line for basic browser
control, 2009-05-08).  Needed after b26bd26 (interactive_context:
construct with `new' instead of ad-hoc, 2009-05-29).
---
 modules/mode-line.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/mode-line.js b/modules/mode-line.js
index cbe45b6..591f805 100644
--- a/modules/mode-line.js
+++ b/modules/mode-line.js
@@ -240,7 +240,7 @@ button_widget.prototype = {
         var element = create_XUL(window, "image");
 
         element.addEventListener("click", function (event) {
-            var ctx = { window: window, key_sequence: [], sticky_modifiers: 0 };
+            var ctx = new interactive_context(window.buffers.current);
             call_interactively(ctx, command);
         }, false);
 
--
1.6.3.3

_______________________________________________
Conkeror mailing list
Conkeror@...
https://www.mozdev.org/mailman/listinfo/conkeror

 « Return to Thread: [PATCH] Provide buttons on the mode-line for basic browser control.