Commit 252a71fb authored by Christian Hergert's avatar Christian Hergert
Browse files

vala: indenter no longer requires context

https://bugzilla.gnome.org/show_bug.cgi?id=779891
parent 0cef1bbc
...@@ -21,7 +21,7 @@ using Ide; ...@@ -21,7 +21,7 @@ using Ide;
namespace Ide namespace Ide
{ {
public class ValaIndenter: GLib.Object, Ide.Indenter public class ValaIndenter: Ide.Object, Ide.Indenter
{ {
public bool is_trigger (Gdk.EventKey evkey) public bool is_trigger (Gdk.EventKey evkey)
{ {
...@@ -180,12 +180,5 @@ namespace Ide ...@@ -180,12 +180,5 @@ namespace Ide
return (prev.get_char () == '{') && (iter.get_char () == '\n') && (next.get_char () == '}'); return (prev.get_char () == '{') && (iter.get_char () == '\n') && (next.get_char () == '}');
} }
// This code shouldn't have to exist.
// If we can fixup libide+vala to not have such weird interaction that
// would be great.
Ide.Context? _context;
public Ide.Context context { construct { _context = value; } }
public void set_context (Ide.Context context) { _context = context; }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment