[gnome-builder] workbench: add helper to get the workbenches workspace area
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] workbench: add helper to get the workbenches workspace area
- Date: Sat, 20 Jun 2015 09:36:42 +0000 (UTC)
commit c271fc052320a8dc1af134aa67e150e227ac781f
Author: Christian Hergert <christian hergert me>
Date: Sat Jun 6 15:12:18 2015 -0700
workbench: add helper to get the workbenches workspace area
src/workbench/gb-workbench.c | 8 ++++++++
src/workbench/gb-workbench.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/workbench/gb-workbench.c b/src/workbench/gb-workbench.c
index 38d9013..9862fdf 100644
--- a/src/workbench/gb-workbench.c
+++ b/src/workbench/gb-workbench.c
@@ -943,3 +943,11 @@ gb_workbench_views_foreach (GbWorkbench *self,
//gb_workspace_views_foreach (GB_WORKSPACE (self->editor_workspace), callback, callback_data);
}
+
+GtkWidget *
+gb_workbench_get_workspace (GbWorkbench *self)
+{
+ g_return_val_if_fail (GB_IS_WORKBENCH (self), NULL);
+
+ return GTK_WIDGET (self->workspace);
+}
diff --git a/src/workbench/gb-workbench.h b/src/workbench/gb-workbench.h
index 8bd1fac..2b6ff7d 100644
--- a/src/workbench/gb-workbench.h
+++ b/src/workbench/gb-workbench.h
@@ -51,6 +51,7 @@ gboolean gb_workbench_get_closing (GbWorkbench *self);
void gb_workbench_views_foreach (GbWorkbench *self,
GtkCallback callback,
gpointer callback_data);
+GtkWidget *gb_workbench_get_workspace (GbWorkbench *self);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]