#167 ✓resolved
Roger

pasting into a speedbar doesn't call the text box's box

Reported by Roger | February 19th, 2010 @ 11:53 PM | in 0.3.3 (closed)

How to reproduce:
open a "find in file" speedbar
search for something
paste something else into it
hit "Search"

It searches for the previous search, instead of the new one.

This patch appears to fix it, but I wasn't sure if this is the right way or not.

Thanks.
-r

diff --git a/plugins/application_swt/lib/application_swt/speedbar.rb b/plugins/application_swt/lib/application_swt/speedbar.rb
index aa4f62a..203ac1d 100644
--- a/plugins/application_swt/lib/application_swt/speedbar.rb +++ b/plugins/application_swt/lib/application_swt/speedbar.rb @@ -99,7 +99,7 @@ module Redcar

         gridData.grabExcessHorizontalSpace = true
         gridData.horizontalAlignment = Swt::Layout::GridData::FILL
         mate_text.getControl.set_layout_data(gridData)
  •      mate_text.getControl.add_modify_listener do
    
  •      mate_text.getControl.add_caret_listener do
           ignore(item.name) do
             item.value = mate_text.getControl.get_text
             if item.listener
    
    @@ -112,7 +112,7 @@ module Redcar
           end
         end
         item.add_listener(:changed_value) do |new_value|
    
  •        ignore(item.name) do
    
  •        ignore(item.name) do
             mate_text.getControl.set_text(new_value)
           end
         end
    

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

People watching this ticket

Pages