thumbnails: don't grab focus on textview when a one click action
authorgc <gc>
Wed, 6 Apr 2005 20:23:29 +0000 (20:23 +0000)
committergc <gc>
Wed, 6 Apr 2005 20:23:29 +0000 (20:23 +0000)
was performed

bin/booh-gui

index ae573b478083d421617fbc7f4b9af807aae67ebe..5531b71ff4564d9247f2ec68e900dbb153a42290 100755 (executable)
@@ -359,15 +359,14 @@ def add_thumbnail(autotable, filename, type, thumbnail_img, caption)
         if event.event_type == Gdk::Event::BUTTON_PRESS && event.button == 1
             if $delete.active?
                 delete.call
-            end
-            if $r90.active?
+            elsif $r90.active?
                 rotate_and_cleanup.call(90)
-            end
-            if $r270.active?
+            elsif $r270.active?
                 rotate_and_cleanup.call(270)
+            else
+                textview.grab_focus
             end
         end
-        textview.grab_focus
         if event.event_type == Gdk::Event::BUTTON2_PRESS && event.button == 1
             view_element(filename)
         else