fantasdic r379 - in trunk: . lib/fantasdic/ui



Author: mblondel
Date: Tue Jan  6 01:24:20 2009
New Revision: 379
URL: http://svn.gnome.org/viewvc/fantasdic?rev=379&view=rev

Log:
    * lib/fantasdic/ui/main_app.rb: Let the match side pane grab the focus when
    it is displayed. This allows the user to use the arrow keys to browse the
    matches.



Modified:
   trunk/ChangeLog
   trunk/lib/fantasdic/ui/main_app.rb

Modified: trunk/lib/fantasdic/ui/main_app.rb
==============================================================================
--- trunk/lib/fantasdic/ui/main_app.rb	(original)
+++ trunk/lib/fantasdic/ui/main_app.rb	Tue Jan  6 01:24:20 2009
@@ -176,6 +176,7 @@
                     disable_print
                     clear_pages_seen
                     @matches_listview.sensitive = true
+                    @matches_listview.grab_focus
                 end
             else
                 # Define
@@ -193,8 +194,13 @@
                             @matches_listview.select_match(p[:word])
                         end
 
+                        if @global_actions["MatchesSidepane"].active? and \
+                           @matches_listview.has_row_selected?
 
-                        @result_text_view.grab_focus
+                            @matches_listview.grab_focus
+                        else
+                            @result_text_view.grab_focus
+                        end
 
                         if definitions.empty?
                             disable_print



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]