diff options
| author | nyamatongwe <devnull@localhost> | 2001-02-05 04:39:42 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-02-05 04:39:42 +0000 |
| commit | bc28310ef52287aef419d8edf728a1c6f47fe27e (patch) | |
| tree | abedd8d80bacfd6f5c9e754109c8687ab98d10ec /gtk/ScintillaGTK.cxx | |
| parent | 6fbd45ca439f4e3e744a183a9bbaaa012fea98c9 (diff) | |
| download | scintilla-mirror-bc28310ef52287aef419d8edf728a1c6f47fe27e.tar.gz | |
Patch from John to make GTK+ version build on Win32.
Modified by me to avoid pointless warnings and print error message if try
to build with Borland C++.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index f4050b544..bbe385f90 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -31,10 +31,16 @@ #include "ViewStyle.h" #include "Document.h" #include "Editor.h" +#include "SString.h" #include "ScintillaBase.h" #include "gtk/gtksignal.h" +#ifdef _MSC_VER +// Constant conditional expressions are because of GTK+ headers +#pragma warning(disable: 4127) +#endif + class ScintillaGTK : public ScintillaBase { _ScintillaObject *sci; Window scrollbarv; @@ -58,6 +64,10 @@ class ScintillaGTK : public ScintillaBase { GdkIC *ic; GdkICAttr *ic_attr; + // Private so ScintillaGTK objects can not be copied + ScintillaGTK(const ScintillaGTK &) {} + ScintillaGTK &operator=(const ScintillaGTK &) { return *this; } + public: ScintillaGTK(_ScintillaObject *sci_); virtual ~ScintillaGTK(); @@ -372,7 +382,7 @@ gint ScintillaGTK::FocusOut(GtkWidget *widget, GdkEventFocus * /*event*/) { return FALSE; } -void ScintillaGTK::SizeRequest(GtkWidget */*widget*/, GtkRequisition *requisition) { +void ScintillaGTK::SizeRequest(GtkWidget * /*widget*/, GtkRequisition *requisition) { requisition->width = 1000; requisition->height = 1000; } |
