[gnome-builder] editor-frame: remove unnecessary cast checks
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor-frame: remove unnecessary cast checks
- Date: Thu, 25 Dec 2014 02:29:46 +0000 (UTC)
commit ebb0afbd9737ccf60da16ead6a5fe2eccc9fd6a8
Author: Christian Hergert <christian hergert me>
Date: Wed Dec 24 18:29:39 2014 -0800
editor-frame: remove unnecessary cast checks
src/editor/gb-editor-frame.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/editor/gb-editor-frame.c b/src/editor/gb-editor-frame.c
index f095c85..125b503 100644
--- a/src/editor/gb-editor-frame.c
+++ b/src/editor/gb-editor-frame.c
@@ -1052,14 +1052,16 @@ static void
gb_editor_frame_constructed (GObject *object)
{
GbSourceChangeMonitor *monitor = NULL;
- GbEditorFramePrivate *priv = GB_EDITOR_FRAME (object)->priv;
+ GbEditorFramePrivate *priv;
GtkSourceGutter *gutter;
- GbEditorFrame *frame = GB_EDITOR_FRAME (object);
+ GbEditorFrame *frame = (GbEditorFrame *)object;
GbSourceVim *vim;
GSettings *settings;
G_OBJECT_CLASS (gb_editor_frame_parent_class)->constructed (object);
+ priv = frame->priv;
+
settings = g_settings_new ("org.gnome.builder.editor");
if (priv->document)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]