summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authortreectrl <treectrl>2005-07-16 18:03:41 (GMT)
committertreectrl <treectrl>2005-07-16 18:03:41 (GMT)
commitd711740df67a22b8119287f8c472253a40c0dff4 (patch)
treef31368527d773d26a8f2959a42ac34fc99c4838f /generic
parentdaf816d6d5e3ce4788ebd0031e0bae8b4e1d997c (diff)
downloadtktreectrl-d711740df67a22b8119287f8c472253a40c0dff4.zip
tktreectrl-d711740df67a22b8119287f8c472253a40c0dff4.tar.gz
tktreectrl-d711740df67a22b8119287f8c472253a40c0dff4.tar.bz2
Added offset args to Tree_DrawTiledImage so image element can use it.
Redo ranges when an item's -height option changes.
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTreeItem.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/generic/tkTreeItem.c b/generic/tkTreeItem.c
index 454db07..7a26f29 100644
--- a/generic/tkTreeItem.c
+++ b/generic/tkTreeItem.c
@@ -5,7 +5,7 @@
*
* Copyright (c) 2002-2005 Tim Baker
*
- * RCS: @(#) $Id: tkTreeItem.c,v 1.48 2005/07/12 02:44:31 treectrl Exp $
+ * RCS: @(#) $Id: tkTreeItem.c,v 1.49 2005/07/16 18:03:41 treectrl Exp $
*/
#include "tkTreeCtrl.h"
@@ -1598,7 +1598,8 @@ static void ItemDrawBackground(TreeCtrl *tree, TreeColumn treeColumn,
XFillRectangle(tree->display, drawable, gc, x, y, width, height);
if (tree->backgroundImage != NULL) {
Tree_DrawTiledImage(tree, drawable, tree->backgroundImage, x, y,
- x + width, y + height);
+ x + width, y + height,
+ tree->drawableXOrigin, tree->drawableYOrigin);
}
}
@@ -2158,6 +2159,11 @@ static int Item_Configure(TreeCtrl *tree, Item *item, int objc,
}
}
+ if (mask & ITEM_CONF_SIZE) {
+ Tree_FreeItemDInfo(tree, (TreeItem) item, NULL);
+ Tree_DInfoChanged(tree, DINFO_REDO_RANGES);
+ }
+
if (mask & ITEM_CONF_BUTTON)
Tree_InvalidateItemDInfo(tree, (TreeItem) item, NULL);