[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - tut-gtk2-dnd-intro

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2012年 12月 12日 (水) 13:03:37 JST


-------------------------
REMOTE_ADDR = 184.145.81.223
REMOTE_HOST = 
        URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-dnd-intro
-------------------------
@@ -750,14 +750,6 @@
    ## ---------------
    ## DnD Destination
    ## ---------------
-   def reverse_dnd_source_n_destination(src_widg, dest_widg)
- 
-     # Remember in the continuation of this method the destination and
-     # source widgets are to be reversed
-     set_dnd_source_frame_widget(dest_widg)
-     set_dnd_destination_frame_widget(dest_widg, src_widg)
-   end
-   
    def set_dnd_destination_frame_widget(src_widg, dest_widg)
    
      Gtk::Drag.dest_set(
@@ -797,7 +789,7 @@
        reverse_dnd_source_n_destination(src_widg, dest_widg)
      end
    end
+
+   def reverse_dnd_source_n_destination(src_widg, dest_widg)
  
+     # Remember in the continuation of this method the destination and
+     # source widgets are to be reversed
+     set_dnd_source_frame_widget(dest_widg)
+     set_dnd_destination_frame_widget(dest_widg, src_widg)
+   end
+   
  end
  
  




ruby-gnome2-cvs メーリングリストの案内
Back to archive index