]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - tests/GUI/dndwindow.cc
Agregue un intento de dibujar la grilla sobre el fondo, creando una clase
[z.facultad/75.42/plaqui.git] / tests / GUI / dndwindow.cc
index daa593958027875326b53ee2d7a1b9129dc5774d..019591bff4bc2b162fc469cb4824aeebbe0831f2 100644 (file)
@@ -35,8 +35,13 @@ DnDWindow::DnDWindow()
   add(m_HBox);
 
        m_HBox.pack_start(m_VBox);
+       
+       m_VBox.pack_start(m_Button_Canio);
+       m_VBox.pack_start(m_Button_Y);
+       m_VBox.pack_start(m_Button_Codo);
+
        m_HBox.pack_start(m_WorkPlace);
-       m_WorkPlace.set_size_request(300, 300);
+       m_WorkPlace.set_size_request(600, 600);
 
   //Targets:
   std::list<Gtk::TargetEntry> listTargets;
@@ -59,20 +64,12 @@ DnDWindow::DnDWindow()
   m_Button_Y.signal_drag_begin().connect( SigC::slot(*this, &DnDWindow::on_y_drag_begin));
   m_Button_Codo.signal_drag_begin().connect( SigC::slot(*this, &DnDWindow::on_codo_drag_begin));
 
-  m_VBox.pack_start(m_Button_Canio);
-       m_VBox.pack_start(m_Button_Y);
-       m_VBox.pack_start(m_Button_Codo);
-
-
   //Drop site:
-
-  //Make m_Label_Drop a DnD drop destination:
   m_WorkPlace.drag_dest_set(listTargets);
-
-  //Connect signals:
+  
+       //Connect signals:
   m_WorkPlace.signal_drag_data_received().connect( SigC::slot(*this, &DnDWindow::on_label_drop_drag_data_received) );
 
-
   show_all();
 }
 
@@ -152,3 +149,4 @@ void DnDWindow::on_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragCon
   context->drag_finish(false, false, time);
 }
 
+