[gnome-builder/wip/symbol-tree: 8/9] tree: return GbTree* from gb_tree_builder_get_tree()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/symbol-tree: 8/9] tree: return GbTree* from gb_tree_builder_get_tree()
- Date: Thu, 18 Jun 2015 11:40:30 +0000 (UTC)
commit 340cbde8b4fda2c1436cbefafdacc0bfbd5b776f
Author: Christian Hergert <christian hergert me>
Date: Thu Jun 18 04:38:16 2015 -0700
tree: return GbTree* from gb_tree_builder_get_tree()
Now that we cleaned up the gb-tree-types.h, we can return the proper type
here without cyclic includes.
src/tree/gb-tree-builder.c | 4 ++--
src/tree/gb-tree-builder.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tree/gb-tree-builder.c b/src/tree/gb-tree-builder.c
index 03b3cb1..d544abf 100644
--- a/src/tree/gb-tree-builder.c
+++ b/src/tree/gb-tree-builder.c
@@ -162,14 +162,14 @@ _gb_tree_builder_set_tree (GbTreeBuilder *builder,
*
* Returns: (transfer none) (type GbTree) (nullable): A #GbTree or %NULL.
*/
-GtkWidget *
+GbTree *
gb_tree_builder_get_tree (GbTreeBuilder *builder)
{
GbTreeBuilderPrivate *priv = gb_tree_builder_get_instance_private (builder);
g_return_val_if_fail (GB_IS_TREE_BUILDER (builder), NULL);
- return (GtkWidget *)priv->tree;
+ return priv->tree;
}
static void
diff --git a/src/tree/gb-tree-builder.h b/src/tree/gb-tree-builder.h
index 6a56a04..74de133 100644
--- a/src/tree/gb-tree-builder.h
+++ b/src/tree/gb-tree-builder.h
@@ -47,7 +47,7 @@ struct _GbTreeBuilderClass
GMenu *menu);
};
-GtkWidget *gb_tree_builder_get_tree (GbTreeBuilder *builder);
+GbTree *gb_tree_builder_get_tree (GbTreeBuilder *builder);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]