Репозитории ALT
S: | 0.96.0-alt1 |
5.1: | 0.92.0-alt6 |
4.1: | 0.92.0-alt2 |
4.0: | 0.92.0-alt2 |
3.0: | 0.91.0-alt1 |
+backports: | 0.92.0-alt0.M30.1 |
Группа :: Графические оболочки/Window Maker
Пакет: WindowMaker
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: WindowMaker-0.92.0-alt-textfield.patch
Скачать
Скачать
WINGs/WINGs/WINGs.h | 2 ++
WINGs/wtextfield.c | 8 ++++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/WINGs/WINGs/WINGs.h b/WINGs/WINGs/WINGs.h
index 503968c..ba3297e 100644
--- a/WINGs/WINGs/WINGs.h
+++ b/WINGs/WINGs/WINGs.h
@@ -1125,6 +1125,8 @@ void WMSelectTextFieldRange(WMTextField *tPtr, WMRange range);
void WMSetTextFieldCursorPosition(WMTextField *tPtr, unsigned int position);
+unsigned WMGetTextFieldCursorPosition(WMTextField *tPtr);
+
void WMSetTextFieldNextTextField(WMTextField *tPtr, WMTextField *next);
void WMSetTextFieldPrevTextField(WMTextField *tPtr, WMTextField *prev);
diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c
index 6090c0c..d954f10 100644
--- a/WINGs/wtextfield.c
+++ b/WINGs/wtextfield.c
@@ -626,6 +626,14 @@ WMSetTextFieldCursorPosition(WMTextField *tPtr, unsigned int position)
}
}
+unsigned
+WMGetTextFieldCursorPosition(WMTextField *tPtr)
+{
+ CHECK_CLASS(tPtr, WC_TextField);
+
+ return tPtr->cursorPosition;
+}
+
void
WMSetTextFieldNextTextField(WMTextField *tPtr, WMTextField *next)