summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarkus Steinborn <gnugv_maintainer@yahoo.de>2012-03-01 18:09:26 +0100
committerJeremy Huddleston <jeremyhu@apple.com>2012-03-24 21:22:57 -0700
commitbc0db762873b564d50faac4ab1bf1c85ea586d36 (patch)
tree60cbdbcd7365e77dbb4648362ee000715a11c3ff /src
parent5d367cd9d0cd8fa5a85ed442e30dab4222824a36 (diff)
Add XawTextGetSink for compatibility with libXaw
Patch found at http://gitorious.org/xaw3d/xaw3d/commit/ccb1ffde090006f5a715c1e3d4da5f4d6fae05d3 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src')
-rw-r--r--src/Command.c2
-rw-r--r--src/Label.c2
-rw-r--r--src/Text.c6
3 files changed, 10 insertions, 0 deletions
diff --git a/src/Command.c b/src/Command.c
index 26a40fa..18efb9a 100644
--- a/src/Command.c
+++ b/src/Command.c
@@ -92,6 +92,8 @@ static XtResource resources[] = {
{XtNcornerRoundPercent, XtCCornerRoundPercent, XtRDimension,
sizeof(Dimension), offset(command.corner_round), XtRImmediate,
(XtPointer) 25},
+ {XtNshadowWidth, XtCShadowWidth, XtRDimension, sizeof(Dimension),
+ offset(threeD.shadow_width), XtRImmediate, (XtPointer) 2},
{XtNborderWidth, XtCBorderWidth, XtRDimension, sizeof(Dimension),
XtOffsetOf(RectObjRec,rectangle.border_width), XtRImmediate,
(XtPointer) 0}
diff --git a/src/Label.c b/src/Label.c
index 46b0465..e8743c5 100644
--- a/src/Label.c
+++ b/src/Label.c
@@ -115,6 +115,8 @@ static XtResource resources[] = {
offset(label.pixmap), XtRImmediate, (XtPointer)None},
{XtNresize, XtCResize, XtRBoolean, sizeof(Boolean),
offset(label.resize), XtRImmediate, (XtPointer)True},
+ {XtNshadowWidth, XtCShadowWidth, XtRDimension, sizeof(Dimension),
+ offset(threeD.shadow_width), XtRImmediate, (XtPointer) 0},
{XtNborderWidth, XtCBorderWidth, XtRDimension, sizeof(Dimension),
XtOffsetOf(RectObjRec,rectangle.border_width), XtRImmediate,
(XtPointer)1}
diff --git a/src/Text.c b/src/Text.c
index be4d592..b0e7a2c 100644
--- a/src/Text.c
+++ b/src/Text.c
@@ -3312,6 +3312,12 @@ XawTextGetSource(Widget w)
return ((TextWidget)w)->text.source;
}
+Widget
+XawTextGetSink(Widget w)
+{
+ return (((TextWidget)w)->text.sink);
+}
+
void
XawTextDisplayCaret (Widget w,
#if NeedWidePrototypes