[gnome-builder/wip/chergert/perspective] editor: use IdeLayout
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/perspective] editor: use IdeLayout
- Date: Wed, 11 Nov 2015 08:29:55 +0000 (UTC)
commit 3d4cf1b21959faf199cc1d6e443d836334efcead
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 11 00:29:38 2015 -0800
editor: use IdeLayout
data/ui/ide-editor-perspective.ui | 2 +-
libide/editor/ide-editor-perspective.c | 4 ++--
libide/editor/ide-editor-perspective.h | 3 ++-
3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/ide-editor-perspective.ui b/data/ui/ide-editor-perspective.ui
index 2a58133..72655d4 100644
--- a/data/ui/ide-editor-perspective.ui
+++ b/data/ui/ide-editor-perspective.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.18 -->
- <template class="IdeEditorPerspective" parent="GtkBin">
+ <template class="IdeEditorPerspective" parent="IdeLayout">
<child>
<object class="GtkLabel">
<property name="visible">true</property>
diff --git a/libide/editor/ide-editor-perspective.c b/libide/editor/ide-editor-perspective.c
index d29e668..387b592 100644
--- a/libide/editor/ide-editor-perspective.c
+++ b/libide/editor/ide-editor-perspective.c
@@ -25,14 +25,14 @@
struct _IdeEditorPerspective
{
- GtkBin parent_instance;
+ IdeLayout parent_instance;
IdeWorkbenchHeaderBar *titlebar;
};
static void ide_perspective_iface_init (IdePerspectiveInterface *iface);
-G_DEFINE_TYPE_EXTENDED (IdeEditorPerspective, ide_editor_perspective, GTK_TYPE_BIN, 0,
+G_DEFINE_TYPE_EXTENDED (IdeEditorPerspective, ide_editor_perspective, IDE_TYPE_LAYOUT, 0,
G_IMPLEMENT_INTERFACE (IDE_TYPE_PERSPECTIVE, ide_perspective_iface_init))
enum {
diff --git a/libide/editor/ide-editor-perspective.h b/libide/editor/ide-editor-perspective.h
index b8548bc..cb21067 100644
--- a/libide/editor/ide-editor-perspective.h
+++ b/libide/editor/ide-editor-perspective.h
@@ -21,13 +21,14 @@
#include <gtk/gtk.h>
+#include "ide-layout.h"
#include "ide-perspective.h"
G_BEGIN_DECLS
#define IDE_TYPE_EDITOR_PERSPECTIVE (ide_editor_perspective_get_type())
-G_DECLARE_FINAL_TYPE (IdeEditorPerspective, ide_editor_perspective, IDE, EDITOR_PERSPECTIVE, GtkBin)
+G_DECLARE_FINAL_TYPE (IdeEditorPerspective, ide_editor_perspective, IDE, EDITOR_PERSPECTIVE, IdeLayout)
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]