[gnome-builder] NavigationList: add new func
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] NavigationList: add new func
- Date: Sun, 14 Dec 2014 11:34:54 +0000 (UTC)
commit 3c2ab8bef6b1de122095175bc5e623fd565758e0
Author: Christian Hergert <christian hergert me>
Date: Sun Dec 14 03:29:50 2014 -0800
NavigationList: add new func
src/navigation/gb-navigation-list.c | 6 ++++--
src/navigation/gb-navigation-list.h | 2 ++
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/navigation/gb-navigation-list.c b/src/navigation/gb-navigation-list.c
index 1bd5b7e..74a6605 100644
--- a/src/navigation/gb-navigation-list.c
+++ b/src/navigation/gb-navigation-list.c
@@ -47,9 +47,11 @@ enum {
static GParamSpec *gParamSpecs [LAST_PROP];
GbNavigationList *
-gb_navigation_list_new (void)
+gb_navigation_list_new (GbWorkbench *workbench)
{
- return g_object_new (GB_TYPE_NAVIGATION_LIST, NULL);
+ return g_object_new (GB_TYPE_NAVIGATION_LIST,
+ "workbench", workbench,
+ NULL);
}
GbWorkbench *
diff --git a/src/navigation/gb-navigation-list.h b/src/navigation/gb-navigation-list.h
index bb2666f..d224efd 100644
--- a/src/navigation/gb-navigation-list.h
+++ b/src/navigation/gb-navigation-list.h
@@ -22,6 +22,7 @@
#include <glib-object.h>
#include "gb-navigation-item.h"
+#include "gb-workbench-types.h"
G_BEGIN_DECLS
@@ -51,6 +52,7 @@ struct _GbNavigationListClass
};
GType gb_navigation_list_get_type (void);
+GbNavigationList *gb_navigation_list_new (GbWorkbench *workbench);
gboolean gb_navigation_list_get_can_go_backward (GbNavigationList *list);
gboolean gb_navigation_list_get_can_go_forward (GbNavigationList *list);
GbNavigationItem *gb_navigation_list_get_current_item (GbNavigationList *list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]