diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2013-12-11 17:25:02 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2013-12-11 18:07:15 -0300 |
commit | 2fcad158ebafce63eeccfbfc7756ed6c69d91c3c (patch) | |
tree | d16b149df7ffe749f058eb23ff3537e909669500 /tests | |
parent | d8353ee66a652e96118d415c12a745937c4051d6 (diff) | |
download | glade-2fcad158ebafce63eeccfbfc7756ed6c69d91c3c.tar.gz |
_glade_tsort() simplyfied api by using a GList for edges instead of a
custom linked struct since we do not need the marginal speedup
now that dependencies are only between toplevels.
This allow us to easily sort edges alphabetically.
tests/toplevel-order: Updated to new _glade_tsort() api
Diffstat (limited to 'tests')
-rw-r--r-- | tests/toplevel-order.c | 6 | ||||
-rw-r--r-- | tests/toplevel_order_test6.glade | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/toplevel-order.c b/tests/toplevel-order.c index 64a0c76d..9011c012 100644 --- a/tests/toplevel-order.c +++ b/tests/toplevel-order.c @@ -8,7 +8,7 @@ typedef struct { GList *nodes; - _NodeEdge *edges; + GList *edges; gchar **orig_nodes; } TsortData; @@ -17,7 +17,7 @@ tsort_data_free (gpointer udata) { TsortData *data = udata; g_list_free (data->nodes); - _node_edge_free (data->edges); + _node_edge_list_free (data->edges); g_free (data); } @@ -129,7 +129,7 @@ static gchar *order_test5[] = {"toplevel_order_test5.glade", /* Commonly used widgets with dependencies */ static gchar *order_test6[] = {"toplevel_order_test6.glade", - "iconfactory", "label_a", "label_b", "asizegroup", "label_c", "xaction", + "ziconfactory", "label_a", "label_b", "asizegroup", "label_c", "xaction", "xactiongroup", "anotherwindow", "xentrybuffer", "xliststore", "treeview", "zaccelgroup", "awindow", NULL }; diff --git a/tests/toplevel_order_test6.glade b/tests/toplevel_order_test6.glade index 8f8cac91..af061399 100644 --- a/tests/toplevel_order_test6.glade +++ b/tests/toplevel_order_test6.glade @@ -2,7 +2,6 @@ <!-- Generated with glade 3.16.0 on Fri Nov 1 11:43:04 2013 --> <interface> <!-- interface-requires gtk+ 3.10 --> - <object class="GtkIconFactory" id="iconfactory"/> <object class="GtkLabel" id="label_a"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -114,4 +113,5 @@ </object> </child> </object> + <object class="GtkIconFactory" id="ziconfactory"/> </interface> |