[libegg/spread-table-dnd] Added an embedded spread table to the spread table to test cross-table drag'n'drop.



commit d8463a8b5f438fc4e6005ba5eb34e2deaeb1da9a
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sat Mar 12 19:30:59 2011 +0900

    Added an embedded spread table to the spread table to test cross-table drag'n'drop.

 libegg/spreadtable/testspreadtable.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libegg/spreadtable/testspreadtable.c b/libegg/spreadtable/testspreadtable.c
index bd4ab20..fa9cfd5 100644
--- a/libegg/spreadtable/testspreadtable.c
+++ b/libegg/spreadtable/testspreadtable.c
@@ -372,6 +372,19 @@ create_window (void)
 
   populate_spread_table_wrappy (EGG_SPREAD_TABLE (paper));
 
+  /* Embed the whole thing once again */
+  widget = egg_spread_table_dnd_new (GTK_ORIENTATION_VERTICAL, INITIAL_LINES);
+  egg_spread_table_set_vertical_spacing (EGG_SPREAD_TABLE (widget), INITIAL_VSPACING);
+  egg_spread_table_set_horizontal_spacing (EGG_SPREAD_TABLE (widget), INITIAL_HSPACING);
+
+  frame  = gtk_frame_new (NULL);
+  gtk_widget_show (widget);
+  gtk_widget_show (frame);
+  gtk_widget_set_size_request (widget, 40, 40);
+  gtk_container_add (GTK_CONTAINER (frame), widget);
+
+  egg_spread_table_insert_child (EGG_SPREAD_TABLE (paper), frame, 5);
+
   gtk_window_set_default_size (GTK_WINDOW (window), 500, 400);
 
   return window;



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