fantasdic r385 - trunk/lib/fantasdic/sources



Author: mblondel
Date: Thu Jan  8 13:03:51 2009
New Revision: 385
URL: http://svn.gnome.org/viewvc/fantasdic?rev=385&view=rev

Log:
Forgot two hooks.


Modified:
   trunk/lib/fantasdic/sources/epwing_dictionary.rb

Modified: trunk/lib/fantasdic/sources/epwing_dictionary.rb
==============================================================================
--- trunk/lib/fantasdic/sources/epwing_dictionary.rb	(original)
+++ trunk/lib/fantasdic/sources/epwing_dictionary.rb	Thu Jan  8 13:03:51 2009
@@ -270,18 +270,6 @@
             ""
         end
 
-        h.register(EB::HOOK_BEGIN_COLOR_BMP) do |eb, argv|
-            ""
-        end
-
-        h.register(EB::HOOK_BEGIN_COLOR_JPEG) do |eb, argv|
-            ""
-        end
-
-        h.register(EB::HOOK_END_COLOR_GRAPHIC) do |eb, argv|
-            ""
-        end
-
         img_hook = Proc.new do |eb, argv|
             eb.read_colorgraphic(EB::Position.new(argv[2], argv[3])) do |raw|
                 b64 = Base64.encode64(raw).gsub("\n", "")  
@@ -289,6 +277,14 @@
             end
         end
 
+        h.register(EB::HOOK_BEGIN_COLOR_BMP, &img_hook)
+
+        h.register(EB::HOOK_BEGIN_COLOR_JPEG, &img_hook)
+
+        h.register(EB::HOOK_END_COLOR_GRAPHIC) do |eb, argv|
+            ""
+        end
+
         h.register(EB::HOOK_BEGIN_IN_COLOR_BMP, &img_hook) \
             if EB.const_defined?(:HOOK_BEGIN_IN_COLOR_BMP)
 



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