[gnome-builder/editor-layout] break out frame into private



commit fb34b07f8e73ae794ad27f6a090804327fd439f8
Author: Christian Hergert <christian hergert me>
Date:   Sun Nov 30 02:48:19 2014 -0800

    break out frame into private
    
    just makes things easier to attack from another .c file.

 src/editor/gb-editor-frame-private.h |   60 ++++++++++++++++++++++++++++++++++
 src/editor/gb-editor-frame.c         |   33 +------------------
 2 files changed, 61 insertions(+), 32 deletions(-)
---
diff --git a/src/editor/gb-editor-frame-private.h b/src/editor/gb-editor-frame-private.h
new file mode 100644
index 0000000..3034371
--- /dev/null
+++ b/src/editor/gb-editor-frame-private.h
@@ -0,0 +1,60 @@
+/* gb-editor-frame-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_FRAME_PRIVATE_H
+#define GB_EDITOR_FRAME_PRIVATE_H
+
+#include "gb-editor-frame.h"
+#include "gb-source-change-gutter-renderer.h"
+#include "gb-source-code-assistant-renderer.h"
+#include "gb-source-search-highlighter.h"
+#include "gb-source-view.h"
+#include "gd-tagged-entry.h"
+#include "gca-structs.h"
+#include "nautilus-floating-bar.h"
+
+G_BEGIN_DECLS
+
+struct _GbEditorFramePrivate
+{
+  /* Widgets owned by GtkBuilder */
+  GtkSpinner                    *busy_spinner;
+  GbSourceChangeGutterRenderer  *diff_renderer;
+  GbSourceCodeAssistantRenderer *code_assistant_renderer;
+  NautilusFloatingBar           *floating_bar;
+  GtkButton                     *forward_search;
+  GtkButton                     *backward_search;
+  GtkScrolledWindow             *scrolled_window;
+  GtkRevealer                   *search_revealer;
+  GdTaggedEntry                 *search_entry;
+  GdTaggedEntryTag              *search_entry_tag;
+  GbSourceView                  *source_view;
+
+  /* Objects owned by GbEditorFrame */
+  GbEditorDocument              *document;
+  GtkSourceSearchContext        *search_context;
+  GtkSourceSearchSettings       *search_settings;
+  GbSourceSearchHighlighter     *search_highlighter;
+
+  /* Signal handler identifiers */
+  gulong                         cursor_moved_handler;
+};
+
+G_END_DECLS
+
+#endif /* GB_EDITOR_FRAME_PRIVATE_H */
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index feb47aa..c602685 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -21,39 +21,8 @@
 #include <glib/gi18n.h>
 
 #include "gb-editor-frame.h"
+#include "gb-editor-frame-private.h"
 #include "gb-log.h"
-#include "gb-source-change-gutter-renderer.h"
-#include "gb-source-code-assistant-renderer.h"
-#include "gb-source-search-highlighter.h"
-#include "gb-source-view.h"
-#include "gd-tagged-entry.h"
-#include "gca-structs.h"
-#include "nautilus-floating-bar.h"
-
-struct _GbEditorFramePrivate
-{
-  /* Widgets owned by GtkBuilder */
-  GtkSpinner                    *busy_spinner;
-  GbSourceChangeGutterRenderer  *diff_renderer;
-  GbSourceCodeAssistantRenderer *code_assistant_renderer;
-  NautilusFloatingBar           *floating_bar;
-  GtkButton                     *forward_search;
-  GtkButton                     *backward_search;
-  GtkScrolledWindow             *scrolled_window;
-  GtkRevealer                   *search_revealer;
-  GdTaggedEntry                 *search_entry;
-  GdTaggedEntryTag              *search_entry_tag;
-  GbSourceView                  *source_view;
-
-  /* Objects owned by GbEditorFrame */
-  GbEditorDocument              *document;
-  GtkSourceSearchContext        *search_context;
-  GtkSourceSearchSettings       *search_settings;
-  GbSourceSearchHighlighter     *search_highlighter;
-
-  /* Signal handler identifiers */
-  gulong                         cursor_moved_handler;
-};
 
 G_DEFINE_TYPE_WITH_PRIVATE (GbEditorFrame, gb_editor_frame, GTK_TYPE_OVERLAY)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]