[gnome-builder/editor-layout] split tab private into its own header
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/editor-layout] split tab private into its own header
- Date: Sun, 30 Nov 2014 13:20:28 +0000 (UTC)
commit 947af714f3a5fca6b3c58cbe6f5afc6159acac72
Author: Christian Hergert <christian hergert me>
Date: Sun Nov 30 03:06:51 2014 -0800
split tab private into its own header
src/editor/gb-editor-tab-private.h | 51 ++++++++++++++++++++++++++++++++++++
src/editor/gb-editor-tab.c | 23 +---------------
src/gnome-builder.mk | 1 +
3 files changed, 54 insertions(+), 21 deletions(-)
---
diff --git a/src/editor/gb-editor-tab-private.h b/src/editor/gb-editor-tab-private.h
new file mode 100644
index 0000000..75be605
--- /dev/null
+++ b/src/editor/gb-editor-tab-private.h
@@ -0,0 +1,51 @@
+/* gb-editor-tab-private.h
+ *
+ * Copyright (C) 2014 Christian Hergert <christian hergert me>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef GB_EDITOR_TAB_PRIVATE_H
+#define GB_EDITOR_TAB_PRIVATE_H
+
+#include <gtksourceview/gtksource.h>
+
+#include "gb-animation.h"
+#include "gb-editor-document.h"
+#include "gb-editor-frame.h"
+#include "gb-editor-tab.h"
+
+G_BEGIN_DECLS
+
+struct _GbEditorTabPrivate
+{
+ /* Widgets owned by GtkBuilder */
+ GbEditorFrame *frame;
+ GtkPaned *paned;
+ GtkProgressBar *progress_bar;
+ GtkToggleButton *split_button;
+
+ /* Weak references */
+ GbEditorFrame *last_frame;
+ GbAnimation *progress_animation;
+
+ /* Objects owned by GbEditorTab */
+ GbEditorDocument *document;
+};
+
+GbEditorFrame *gb_editor_tab_get_last_frame (GbEditorTab *tab);
+
+G_END_DECLS
+
+#endif /* GB_EDITOR_TAB_PRIVATE_H */
diff --git a/src/editor/gb-editor-tab.c b/src/editor/gb-editor-tab.c
index 5a53edb..daa1deb 100644
--- a/src/editor/gb-editor-tab.c
+++ b/src/editor/gb-editor-tab.c
@@ -19,32 +19,13 @@
#define G_LOG_DOMAIN "editor-tab"
#include <glib/gi18n.h>
-#include <gtksourceview/gtksource.h>
-#include "gb-animation.h"
-#include "gb-editor-document.h"
-#include "gb-editor-frame.h"
#include "gb-editor-frame-private.h"
#include "gb-editor-tab.h"
+#include "gb-editor-tab-private.h"
#include "gb-log.h"
#include "gb-widget.h"
-struct _GbEditorTabPrivate
-{
- /* Widgets owned by GtkBuilder */
- GbEditorFrame *frame;
- GtkPaned *paned;
- GtkProgressBar *progress_bar;
- GtkToggleButton *split_button;
-
- /* Weak references */
- GbEditorFrame *last_frame;
- GbAnimation *progress_animation;
-
- /* Objects owned by GbEditorTab */
- GbEditorDocument *document;
-};
-
G_DEFINE_TYPE_WITH_PRIVATE (GbEditorTab, gb_editor_tab, GB_TYPE_TAB)
static void
@@ -277,7 +258,7 @@ gb_editor_tab_on_split_toggled (GbEditorTab *tab,
}
}
-static GbEditorFrame *
+GbEditorFrame *
gb_editor_tab_get_last_frame (GbEditorTab *tab)
{
g_return_val_if_fail (GB_IS_EDITOR_TAB (tab), NULL);
diff --git a/src/gnome-builder.mk b/src/gnome-builder.mk
index e65598f..46a844b 100644
--- a/src/gnome-builder.mk
+++ b/src/gnome-builder.mk
@@ -64,6 +64,7 @@ libgnome_builder_la_SOURCES = \
src/editor/gb-editor-settings-widget.h \
src/editor/gb-editor-tab.c \
src/editor/gb-editor-tab.h \
+ src/editor/gb-editor-tab-private.h \
src/editor/gb-editor-workspace.c \
src/editor/gb-editor-workspace.h \
src/editor/gb-editor-workspace-private.h \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]