1 // TODO: escape in the text field should hide it, not search more!
6 instance_init: function(klass)
8 var closeButton = new Gtk.Button();
9 closeButton.set_image(new Gtk.Image({stock: "gtk-close",
10 icon_size: Gtk.IconSize.MENU}));
11 closeButton.signal.clicked.connect(
12 function (button, findBox)
14 findBox.entryBox.text = "";
17 closeButton.set_relief(Gtk.ReliefStyle.NONE);
19 var findLabel = new Gtk.Label({label:"Find: "});
20 this.entryBox = new Gtk.Entry();
21 this.entryBox.signal.key_release_event.connect(find, this);
23 this.caseSensitive = new Gtk.CheckButton({label:"Match case"});
24 /* this.caseSensitive.signal.toggled.connect(
28 current_tab().webView.unmark_text_matches();
33 this.pack_start(closeButton);
34 this.pack_start(findLabel);
35 this.pack_start(this.entryBox, true, true);
36 this.pack_start(this.caseSensitive, false, false, 10);
39 FindBox = new GType(FindBoxType);