diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2012-09-05 19:39:22 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2012-10-08 07:29:58 +0200 |
commit | ec4f78c008e12b08e55149b2480ed9654556737c (patch) | |
tree | 1245f40024ad60246f03e62c27387f284b60d0a6 /liblogdiag/ld-category-view.c | |
parent | 819917536efb59dd913e6d8282ea2f04efa0709e (diff) | |
download | logdiag-ec4f78c008e12b08e55149b2480ed9654556737c.tar.gz logdiag-ec4f78c008e12b08e55149b2480ed9654556737c.tar.xz logdiag-ec4f78c008e12b08e55149b2480ed9654556737c.zip |
Stub LdCategorySymbolView.
Diffstat (limited to 'liblogdiag/ld-category-view.c')
-rw-r--r-- | liblogdiag/ld-category-view.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/liblogdiag/ld-category-view.c b/liblogdiag/ld-category-view.c index 75d10f1..5c0d7d4 100644 --- a/liblogdiag/ld-category-view.c +++ b/liblogdiag/ld-category-view.c @@ -263,18 +263,27 @@ reload_category (LdCategoryView *self) if (self->priv->category) { - GSList *children; - - /* TODO: Also show the symbols. */ + GSList *symbols, *children; + symbols = (GSList *) ld_category_get_symbols (self->priv->category); children = (GSList *) ld_category_get_children (self->priv->category); + + if (symbols) + { + GtkWidget *symbol_view; + + symbol_view = ld_category_symbol_view_new (); + ld_category_symbol_view_set_category + (LD_CATEGORY_SYMBOL_VIEW (symbol_view), self->priv->category); + gtk_box_pack_start (GTK_BOX (self), symbol_view, FALSE, FALSE, 0); + } + if (children) { reconstruct_prefix (self); g_slist_foreach (children, load_category_cb, self); } - else - /* TODO: Don't show this if there are any symbols. */ + else if (!symbols) gtk_box_pack_start (GTK_BOX (self), create_empty_label (), FALSE, FALSE, 0); } |