Mercurial > projects > dwt-linux
diff dwt/widgets/ExpandItem.d @ 240:ce446666f5a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 12 May 2008 19:13:01 +0200 |
parents | 380bad9f6852 |
children | 5a30aa9820f3 |
line wrap: on
line diff
--- a/dwt/widgets/ExpandItem.d Mon May 12 15:36:37 2008 +0200 +++ b/dwt/widgets/ExpandItem.d Mon May 12 19:13:01 2008 +0200 @@ -290,8 +290,7 @@ public int getHeaderHeight () { checkWidget (); if (OS.GTK_VERSION >= OS.buildVERSION (2, 4, 0)) { - auto widget = OS.gtk_expander_get_label_widget (handle); - return OS.GTK_WIDGET_HEIGHT (widget); + return OS.GTK_WIDGET_HEIGHT (handle) - (expanded ? height : 0); } return Math.max (parent.getBandHeight (), imageHeight); } @@ -596,6 +595,14 @@ } } +void setOrientation() { + super.setOrientation (); + if ((parent.style & DWT.RIGHT_TO_LEFT) !is 0) { + OS.gtk_widget_set_direction (handle, OS.GTK_TEXT_DIR_RTL); + display.doSetDirectionProc(handle, OS.GTK_TEXT_DIR_RTL); + } +} + public override void setText (String string) { super.setText (string); if (OS.GTK_VERSION >= OS.buildVERSION (2, 4, 0)) {