aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-29 16:06:51 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-29 16:06:51 +0000
commit3c68b8158c7b83d2c99f25adb41082b2bc518f9c (patch)
treec2172e5b1828396f89d66af760ad581aa09131f9
parent526d63c2fe1ce3470b5958274985748db9f96974 (diff)
unify
-rw-r--r--Sgraph.c2
-rw-r--r--SgraphP.h28
2 files changed, 12 insertions, 18 deletions
diff --git a/Sgraph.c b/Sgraph.c
index 0c438c2..cf08fac 100644
--- a/Sgraph.c
+++ b/Sgraph.c
@@ -19,7 +19,7 @@
#include <X11/IntrinsicP.h>
#include <X11/StringDefs.h>
#include <X11/extensions/Xdbe.h>
-#include <X11/extensions/Xrender.h>
+//#include <X11/extensions/Xrender.h>
#include "SgraphP.h"
#include <err.h>
diff --git a/SgraphP.h b/SgraphP.h
index 19ed24b..ba138bc 100644
--- a/SgraphP.h
+++ b/SgraphP.h
@@ -20,23 +20,6 @@
#include "Sgraph.h"
-/* include superclass private header file */
-#include <X11/CoreP.h>
-
-/* define unique representation types not found in <X11/StringDefs.h> */
-#define XtRSgraphResource "SgraphResource"
-
-typedef struct {
- XtPointer extension;
-} SgraphClassPart;
-
-typedef struct _SgraphClassRec {
- CoreClassPart core_class;
- SgraphClassPart sgraph_class;
-} SgraphClassRec;
-
-extern SgraphClassRec sgraphClassRec;
-
typedef struct {
Pixel background;
Pixel foreground;
@@ -64,4 +47,15 @@ typedef struct _SgraphRec {
SgraphPart sgraph;
} SgraphRec;
+typedef struct {
+ XtPointer extension;
+} SgraphClassPart;
+
+typedef struct _SgraphClassRec {
+ CoreClassPart core_class;
+ SgraphClassPart sgraph_class;
+} SgraphClassRec;
+
+extern SgraphClassRec sgraphClassRec;
+
#endif