From 9ef2de247c74c8f3ff23f050dfa97503a73c1030 Mon Sep 17 00:00:00 2001 From: "Joel W. Reed" Date: Fri, 17 Aug 2007 21:31:05 -0400 Subject: [PATCH] sync --- tools/tf/Makefile | 6 ++++-- tools/tf/NoSourceView.cs | 14 ++++++++++++++ tools/tf/SourceView.cs | 14 ++++++++++++++ 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 tools/tf/NoSourceView.cs create mode 100644 tools/tf/SourceView.cs diff --git a/tools/tf/Makefile b/tools/tf/Makefile index 1aa9c92..0a62fe6 100644 --- a/tools/tf/Makefile +++ b/tools/tf/Makefile @@ -10,8 +10,10 @@ EXTRA_SOURCES += $(EXPLORE_SOURCES) LOCAL_MCS_FLAGS += -pkg:gtk-sharp-2.0 endif -ifeq ($(HAVE_GTK_SOURCEVIEW),yes) -EXTRA_SOURCES += $(EXPLORE_SOURCES) +ifeq ($(HAVE_GTK_SOURCEVIEW),no) +EXTRA_SOURCES += NoSourceView.cs +else +EXTRA_SOURCES += SourceView.cs LOCAL_MCS_FLAGS += -pkg:gtksourceview-sharp-2.0 endif diff --git a/tools/tf/NoSourceView.cs b/tools/tf/NoSourceView.cs new file mode 100644 index 0000000..4859d8f --- /dev/null +++ b/tools/tf/NoSourceView.cs @@ -0,0 +1,14 @@ +using System; +using System.Text; +using Gtk; +using Pango; + +public class TextView : Gtk.TextBuffer +{ + public TextView() + { + CursorVisible = false; + Editable = false; + ModifyFont(Pango.FontDescription.FromString("Vera Sans Mono 16")); + } +} diff --git a/tools/tf/SourceView.cs b/tools/tf/SourceView.cs new file mode 100644 index 0000000..4859d8f --- /dev/null +++ b/tools/tf/SourceView.cs @@ -0,0 +1,14 @@ +using System; +using System.Text; +using Gtk; +using Pango; + +public class TextView : Gtk.TextBuffer +{ + public TextView() + { + CursorVisible = false; + Editable = false; + ModifyFont(Pango.FontDescription.FromString("Vera Sans Mono 16")); + } +} -- 2.11.4.GIT