summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-02 08:18:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-02 08:18:30 (GMT)
commitf12a8565b7dec286dead34e157892fed3202f352 (patch)
treec47dbd0ed313adb5371167f0e18f2b7a5086d05b /generic
parent95c723cdcfe9a574608d9d85288588b9ea982bc9 (diff)
parent1754d107eec0f5a8ac1d589923bb650f8995e63e (diff)
downloadtk-f12a8565b7dec286dead34e157892fed3202f352.zip
tk-f12a8565b7dec286dead34e157892fed3202f352.tar.gz
tk-f12a8565b7dec286dead34e157892fed3202f352.tar.bz2
merge trunk
Diffstat (limited to 'generic')
-rw-r--r--generic/tkClipboard.c7
-rw-r--r--generic/ttk/ttkEntry.c6
2 files changed, 5 insertions, 8 deletions
diff --git a/generic/tkClipboard.c b/generic/tkClipboard.c
index e153064..043c167 100644
--- a/generic/tkClipboard.c
+++ b/generic/tkClipboard.c
@@ -645,11 +645,8 @@ TkClipInit(
* and set up an event handler for it.
*/
- dispPtr->clipWindow = Tk_CreateWindow(interp, NULL, "_clip",
- DisplayString(dispPtr->display));
- if (dispPtr->clipWindow == NULL) {
- return TCL_ERROR;
- }
+ dispPtr->clipWindow = (Tk_Window) TkAllocWindow(dispPtr,
+ DefaultScreen(dispPtr->display), NULL);
Tcl_Preserve(dispPtr->clipWindow);
atts.override_redirect = True;
Tk_ChangeWindowAttributes(dispPtr->clipWindow, CWOverrideRedirect, &atts);
diff --git a/generic/ttk/ttkEntry.c b/generic/ttk/ttkEntry.c
index 6eccf51..a3d0179 100644
--- a/generic/ttk/ttkEntry.c
+++ b/generic/ttk/ttkEntry.c
@@ -1225,10 +1225,10 @@ static void EntryDisplay(void *clientData, Drawable d)
* clipping area from the GC, so we have to supply that by other means.
*/
- rect.x = entryPtr->entry.layoutX;
- rect.y = entryPtr->entry.layoutY;
+ rect.x = textarea.x;
+ rect.y = textarea.y;
rect.width = textarea.width;
- rect.height = entryPtr->entry.layoutHeight;
+ rect.height = textarea.height;
clipRegion = TkCreateRegion();
TkUnionRectWithRegion(&rect, clipRegion, clipRegion);
#ifdef HAVE_XFT