Commit Graph
73 Commits
Author SHA1 Message Date
Kacper Kasper 17c18c1b0d unittests: fix x86_gcc2 build issues 2026-01-24 12:02:56 +01:00
Kacper Kasper 348941b087 Fix HaikuDepot file generation for tests
* Fix netservice2 test suite compilation.
* Disable kernel test suites that fail to compile.

Change-Id: I18e9ba055bff3d3fee71686cf9e174587f819af3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10235
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-17 21:27:09 +00:00
Kacper Kasper fa4502cdb5 Fix unit tests to work with test_app_server
* Test suite runs to completion (with failures).
* Observed sporadic hang in "BMessageQueue::Concurrency Test #1
  (with list)".
* Disabled Deskbar tests because they can mess up system's Deskbar.
  Something like test_app_server needs to be provided.
* Disabled B_CMAP8 conversion tests due to #19885.
* Fixed typo in variable names in haikudepot Jamfile.
* "TARGET_PLATFORM=libbe_test jam -q install-unittest-libs" should
  prepare complete testing environment.

Change-Id: Ie73fc3aaec5e6f73e310421404acda08f0b7faf4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10224
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-12 22:45:52 +00:00
Kacper Kasper 7c9ee88078 app_server: Remove special case for fully opaque layers
* Fixes #19871.

Change-Id: I4b74dc9fae512530ed1d0bec74d73c24c6a99ea3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10212
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-09 19:08:35 +00:00
Kacper Kasper d620b23279 Implement missing methods in PictureBoundingBoxPlayer
* Remove const from gradient in StrokeLineGradient.
  BoundingBoxPlayer needs to apply transform to it.
* Extend LayersTest.
* Use BStackOrHeapArray for polygons.
* Fixes #12937.

Change-Id: If0a4abec0168dbe9afe7ea92bb29017ea8c89c79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10211
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-01-06 21:22:30 +00:00
Kacper Kasper fca32fdb8b Fix test_app_server build
* Add layers_test.

Change-Id: Ibadd70e9be5118e9c9b764600ef515475b86566a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10151
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-23 23:14:55 +00:00
Kacper Kasper ccf8b1e96f BTab: decouple display label from view name.
In BeOS, the tab label was synchronized with the view name. This means
BTab::SetLabel would change the view name. This behavior is unexpected,
and also annoying, for example it prevents using localized tab labels
but fixed view names for scripting.

* Document this divergence from BeOS in the Haiku book
* Detect if we're running in a BeOS app to preserve the old behavior
  then

Change-Id: I5b758a035fe8752cee2ea7789a30ea47a01467b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/122
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2025-12-02 08:00:36 +00:00
Kacper Kasper 6f58244192 Support repositories created with git worktree
* .git is a file in worktree-created copies.
* Determines the correct directory using git command, when
  running configure.
* Fixes #16808.

Change-Id: I72c7b2e79aac5140d35e0339fad16160a35911ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6914
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2023-11-01 09:09:27 +00:00
Kacper Kasper 8798a36c9b HaikuDepot: pluralization for minimum age text
Change-Id: I82fdbe5741103291e55bfb3765dc62617e3638ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5947
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2022-12-19 18:58:02 +00:00
Kacper Kasper 7323d0a21d Minor documentation fixes
* Remove duplicated Interface Kit description.
* Fixed links, a typo, inconsistent page names.

Change-Id: I38e5943f31bf30870d33f02a97b4ef899222ec36
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4854
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2022-01-11 12:22:17 +00:00
Kacper Kasper fd876ad749 intel_extreme: vblank interrupt support for Gen8+
Change-Id: I8e7e68786cc4a626cb386929600715a6a6b1917d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4760
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2022-01-01 11:36:02 +00:00
Kacper Kasper 66aae93087 intel_extreme: enable CoffeeLake
Change-Id: Id73c88d0815259fa7a8027f757ac430818492b1e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4739
Reviewed-by: Jérôme Duval <[email protected]>
2021-11-30 08:06:56 +00:00
Kacper Kasper 7a855aa5c7 intel_extreme: fix overflow in SKL PLL calculation
* RGB 4K@60Hz clock is 594MHz, that multiplied by 5 overflows int value.

Change-Id: Idda04119d582fa4e30c7729296ad5959b29dba77
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4738
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Rudolf Cornelissen <[email protected]>
2021-11-29 18:14:21 +00:00
Kacper Kasper fe9ab0f353 intel_gart: add support for Gen8+ GPUs
Change-Id: I8b84e278f33542c359fc0d783f571e06ebc89b2a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4737
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Rudolf Cornelissen <[email protected]>
2021-11-29 18:14:21 +00:00
Kacper Kasper ba6a1df423 MediaPlayer: cache file duration in memory
* SetAttribute() will fail for read-only volumes.
* Duration() is called in playlist's Draw() method.
  Since _CalculateDuration() is very expensive because it parses
  file metadata, it causes visible drawing glitches and playlist is
  almost unusable.
* Mitigates #15221. I don't consider this a fix because first draw
  is still going to block for a long time, but at least scrolling
  works smoothly now. Ideally, file metadata would be parsed
  asynchronously in a separate thread and drawn as it becomes
  available.

Change-Id: If198d61c77a7746bcc0e19b7caeed89ce829c247
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4597
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2021-10-19 08:21:43 +00:00
Kacper Kasper ef83008e79 app_server: add B_UNDERSCORE_FACE support
There was some confusion (and a TODO indicating it) in ServerFont.cpp,
because the notion of "font face" from the Be API is partially
implemented using different font manager styles (bold, italic, etc),
and partially by keeping flags in a separate variable for drawing
extra things or modifying the drawing (underscore, strikeout, ...).

The implementation did not actually preserve the extra flags, and so the
underscore face attribute was lost.

Implement the actual underlining of the text in AGGTextRenderer. This
implementation is a naive one so far. In particular there are the
following limitations:
1. Line is drawn over the text - no nice gaps for descents. Ideally, the
   line should not touch the letter descents, and leave some space
   around them. I don't know how to retrieve the contour - it appears to
   me this might require bigger refactoring of this code. I have left in
   my experiments commented out in the code.
2. If the text run ends with whitespace, the whitespace is not underlined
   as it should. In particular if another text run is drawn next to it
   and it's expected that the underline is continuous between the two.

Change-Id: I8d78b8e1eceddff0a7d98e5a49659e7b03fd89a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3041
Reviewed-by: Kacper Kasper <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2021-07-25 08:39:57 +00:00
Kacper Kasper a78899d40a Debugger: fix infinite recursion when resolving lambdas
* Should fix #14346. Uploaded executable there doesn't work anymore,
  but this patch is prepared for case in #16040, and fixes
  #16680 too.
* The issue is that if lambda parameters use an alias, this alias
  has that lambda as a parent. Specifically the compiler generates
  operator() subprogram, Debugger tries to resolve types for its
  parameters, but at the same time it is a parent namespace for
  those types.
* Call chain: operator()( -> type 1 -> namespace: operator()( ->
  type 1 -> namespace: operator()( -> ...

Change-Id: I7aad150a8d9de4f0c01ae0c1db5e486416b72112
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3824
Reviewed-by: Adrien Destugues <[email protected]>
2021-03-27 10:23:33 +00:00
Kacper Kasper 8534484314 Fix MutableLocaleRoster::LoadCatalog logic
* It should always try loading parent language.

Change-Id: I3af14beef70a41242d09b11f09abf749ac92e588
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3802
Reviewed-by: Adrien Destugues <[email protected]>
2021-03-17 07:25:00 +00:00
Kacper Kasper 2775737e9d TextSearch: add option to set target to parent directory
Two usage scenarios:

* Wrong directory selected when invoking as Tracker add-on.
  I often find myself having TextSearch invoked on selected child,
  when I wanted it to open in parent context.
* Result was not found in target directory, so maybe the search
  should be broader.

Change-Id: I2621f3cec7459572ddae438de4ba42ce74432e28
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3044
Reviewed-by: humdinger <[email protected]>
2020-07-22 01:34:52 +00:00
Kacper Kasper 7d5ea15ee0 TextSearch: change Select all shortcut
Anecdotal: whenever I hit Cmd+A with text field focused I want to
quickly select search phrase, not the results. In fact I never found
myself in a situation where the latter is the desired outcome.
Change-Id: Ib5edcee8e7366485181cb2030ecfa989619cd600
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3043
Reviewed-by: Adrien Destugues <[email protected]>
2020-07-20 14:03:38 +00:00
Kacper Kasper 2899294cf1 app_server: Fix assert in DrawStringDry
Change-Id: I58b86860367df86b77bbdffadeff9843c9c8ab11
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2958
Reviewed-by: Adrien Destugues <[email protected]>
2020-07-03 08:15:17 +00:00
Kacper Kasper 009df98c86 app_server: Fix gcc2 build 2020-06-29 19:44:57 +02:00
Kacper Kasper 97bd6fe8d4 app_server: Implement more composition modes
* Use agg::comp_op classes to blend pixels.
* Subpixel path not implemented.
* Needed by WebKit.
* Implements #10274.

Change-Id: I07b0002196fd0a05fc100bd9f6d703c33cadc85b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2932
Reviewed-by: X512 <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2020-06-29 14:07:42 +00:00
Kacper Kasper c63d300251 app_server: fix tiled drawing when phase is outside bitmap bounds
sourceRect has phase baked in. If phasecomponents are larger than bitamp bounds
sourceRect no longer intersects and nothing gets drawn.

Change-Id: Ib3f676b8e78e2d941c89e699f9a0ab39cc93e173
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2916
Reviewed-by: waddlesplash <[email protected]>
2020-06-13 20:35:29 +00:00
Kacper Kasper c67dde0f2c app_server: Add tiled bitmap drawing routines
Change-Id: I9a7bd967f2cc95d815a66707b764cf5e33b3f8ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1962
Reviewed-by: Adrien Destugues <[email protected]>
2019-12-09 12:22:28 +00:00
Kacper Kasper 9268c3d7e5 x86: Reorder ifs in page fault handler
* If interrupts were disabled, SMAP and SMEP violation message was
  shadowed by confusing "page fault but interrupts disabled" panic.

Change-Id: I7470329984e55330f35fdca9b7c253fc4684e0c8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1891
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2019-10-01 02:50:14 +00:00
Kacper Kasper 14c3e38739 Discard column info in Debugger
* With them Debugger doesn't allow setting breakpoints inside functions.
* Workaround for #15159. Further explanation by anevilyak is also there.

Change-Id: I661b7dcb28a4c02f671b85cb5c26fa0bd5a53078
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1892
Reviewed-by: Rene Gollent <[email protected]>
2019-09-28 01:27:42 +00:00
Kacper Kasper 2d85a5644b Fix SMAP violation when running profile
* Fixes #15379.

Change-Id: I3d5672ec0ffd4c09a35535f641e433d3d714412a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1890
Reviewed-by: Jérôme Duval <[email protected]>
2019-09-27 22:52:49 +00:00
Kacper Kasper 827f75a766 Add missing include in bsd/sys/link_elf.h
* Doesn't build without it.

Change-Id: Ia8671f1545fee6684278e688d0a16a1147e78842
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1866
Reviewed-by: waddlesplash <[email protected]>
2019-09-18 03:40:47 +00:00
Kacper Kasper 17c9e98743 TextView: add shortcuts for wordwise delete
Change-Id: Ie67f6255c3f5d9d8ccc6699ed42dd71ae593fa16
Reviewed-on: https://review.haiku-os.org/c/1573
Reviewed-by: Adrien Destugues <[email protected]>
2019-07-14 14:14:39 +00:00
Kacper Kasper 35dbbd990c ProcessController: fix replicant for 12 CPUs
* Slightly change the formula for bigger sizes (use real width).

Change-Id: I66204c2727f30e3f139b506174e287811c258fa9
Reviewed-on: https://review.haiku-os.org/704
Reviewed-by: Axel Dörfler <[email protected]>
2018-11-17 16:30:45 +00:00
Kacper Kasper 35a074e071 BStringView: fix #14680 2018-11-05 19:41:38 +01:00
Kacper Kasper 800e6fe412 BStringView: add support for multiline strings
* Actually draw the string at the bottom of the frame.
* Unfortunately BStringList cannot be cached because there is no
  space left in the class.
* Change SGI and PNG translators to use it in place of BTextView.

Change-Id: I07e12bf1a8dc956d18c9624604c7b63453ad15a2
Reviewed-on: https://review.haiku-os.org/620
Reviewed-by: waddlesplash <[email protected]>
2018-11-03 16:44:10 +00:00
Kacper Kasper 4abe18063a makefile-engine: add .cxx extension handling
Change-Id: I67312f69c71b0653013bd001613dbac5cb464594
Reviewed-on: https://review.haiku-os.org/654
Reviewed-by: waddlesplash <[email protected]>
2018-11-02 21:18:35 +00:00
Kacper Kasper 3bac8deff6 Add -a option to locale utility
* Required by POSIX.

Change-Id: Ided0a9d45d5edd00f3aa6279e99ca486ca372f6c
Reviewed-on: https://review.haiku-os.org/651
Reviewed-by: Adrien Destugues <[email protected]>
2018-11-02 14:25:57 +00:00
Kacper Kasper ebb4be2aef Make spinner buttons look consistent with other controls
Change-Id: Icb29772c91687f4c7e4795a726636cf588b83f16
Reviewed-on: https://review.haiku-os.org/610
Reviewed-by: waddlesplash <[email protected]>
2018-10-02 19:24:23 +00:00
Kacper Kasper a8c0b1c873 FontDemo: fix font style submenu placement
Change-Id: I1182fb466e5007b728410872991eea7fd6018fdf
Reviewed-on: https://review.haiku-os.org/609
Reviewed-by: waddlesplash <[email protected]>
2018-10-02 19:24:04 +00:00
Kacper Kasper 42b6e5279f Revert "HaikuDepot: don't scale bitmaps"
This reverts commit 2ba2d60351.

...and properly fix the scaling issue.

Change-Id: I2c7ef833c1ff592dd95ea7d83d3f7beced42f209
Reviewed-on: https://review.haiku-os.org/589
Reviewed-by: waddlesplash <[email protected]>
2018-09-29 17:24:49 +00:00
Kacper Kasper 2ba2d60351 HaikuDepot: don't scale bitmaps
* There was an off-by-one error in initialization code;
  BRect(0, 0, 15, 15) does not create 16x16 bitmap - it is 15x15.
  As a result vector icons were rendered at 15x15 and then scaled to
  16x16.

Change-Id: If1b57148e5a887a4bf71e01606d3d0d6fd0ed149
Reviewed-on: https://review.haiku-os.org/585
Reviewed-by: waddlesplash <[email protected]>
2018-09-18 20:29:40 +00:00
Kacper Kasper 709c79a3f7 MediaPlayer: don't fill background for mute button
* The difference is visible when control background doesn't match
  panel background.

Change-Id: Ie3a034acaa52929becd6601520e0e05f32ecc8d8
Reviewed-on: https://review.haiku-os.org/537
Reviewed-by: waddlesplash <[email protected]>
2018-09-11 20:03:13 +00:00
Kacper Kasper df8b692ac0 Revive unit tests
* Fix build on 64-bit.
* Test suite can now run from start to finish.
* Changes in OutlineListView test need an explanation:
  for some reason when BApplication is created on heap, be_app is not
  reset. This causes other tests to crash due to second BApplication
  object being created.

Change-Id: Ic7d55f4622192f83572bfd83fa37f1f5fd641e22
Reviewed-on: https://review.haiku-os.org/465
Reviewed-by: waddlesplash <[email protected]>
2018-08-25 18:50:26 +00:00
Kacper Kasper fe8b46fb0d kernel: vm: add unit tests for get_mount_point
Change-Id: I1eb7540ffadb26acf05b695af2e7508c71ac7274
Reviewed-on: https://review.haiku-os.org/460
Reviewed-by: waddlesplash <[email protected]>
2018-08-15 16:14:18 +00:00
Kacper Kasper 78058cf6d5 tests: Add support for 64-bit ELFs in SymbolPatcher
Change-Id: I1f323e0d6d5c47d7d0de980fc6cc7ccbe799ae0e
Reviewed-on: https://review.haiku-os.org/466
Reviewed-by: waddlesplash <[email protected]>
2018-08-15 16:14:01 +00:00
Kacper Kasper f26398d462 kernel: vm: remove panic
* That's embarrassing.
2018-08-06 23:09:05 +02:00
Kacper Kasper 7cea6679a8 kernel: vm: fix off-by-one errors in get_mount_point
* Fix for 03df8bfcf2.
* Fix misleading indentation.
* Fixes #14225.
2018-08-06 23:07:27 +02:00
Kacper Kasper c49f045421 Link WebPositive with libWebKitLegacy on x86_64
Signed-off-by: Augustin Cavalier <[email protected]>
2018-06-17 12:58:19 -04:00
Kacper Kasper 821f3e571b ProcessController: fix replicant for up to 12 CPUs. 2018-02-28 16:44:25 +01:00
Kacper Kasper 57313774b9 AboutSystem: don't add licenses twice. 2018-02-28 16:02:12 +01:00
Kacper Kasper e0c304f798 efi: fix 64-bit build. 2018-02-23 22:23:51 +01:00
Kacper Kasper ffd80a755d Add EXR image to MIME DB. 2017-12-17 17:57:55 +01:00
Kacper Kasper 9a3c78bc4d Enable Werror for EXRTranslator. 2017-12-17 17:57:54 +01:00
Kacper Kasper b875d6d43b Outsource OpenEXR.
* Style fixes in EXRTranslator.
2017-12-17 17:57:53 +01:00
Kacper Kasper 546065592d PowerStatus: make tab size dependent on font size. 2017-11-24 15:28:25 +01:00
Kacper Kasper 2b7297f879 DeskCalc: accept file drops.
* Fixes #9283.
2017-11-21 21:15:16 +01:00
Kacper Kasper f4a1f9c06a ICNSTranslator: add missing B_TRANSLATEs. 2017-11-21 20:08:29 +01:00
Kacper Kasper 2c856023e9 DeskCalc: fix cut off buttons.
* Window frame might change based on set size limits.
  Creating view with rectangle used to create the window causes it
  to anchor outside the window.
  To address that pass current frame rectangle to the view.
* Fixes #13167.
2017-11-21 20:08:29 +01:00
Kacper Kasper 830758ad45 PowerStatus: convert to BTabView.
* Move text inside battery if possible.
* Fix location of the spark.
* Fixes #5422 and #7330.
2017-11-21 10:31:33 +01:00
Kacper Kasper d1929affbb PowerStatus: use layout to draw info strings. 2017-11-21 10:31:32 +01:00
Kacper Kasper 22423870a5 docs/user: Update CSS for Doxygen 1.8.12. 2017-09-30 17:26:46 +02:00
Kacper Kasper cf3524e07f Fix WebPositive drawing glitches.
* Introduced with recent BTabView changes.
* Adjust drawing tabs a bit.
* Remove trailing whitespace.

Signed-off-by: Adrien Destugues <[email protected]>
2017-08-26 12:23:31 +02:00
Kacper Kasper cb13fce878 BTabView: implement drawing tabs on all sides.
Signed-off-by: Adrien Destugues <[email protected]>
2017-08-20 09:04:05 +02:00
Kacper Kasper 173e8195a4 BTabView: remove dead code.
Signed-off-by: Adrien Destugues <[email protected]>
2017-08-20 09:04:05 +02:00
Kacper Kasper a34769a0cc BTabView: cleanup draw function.
* Slightly changes how tabs look.

Signed-off-by: Adrien Destugues <[email protected]>
2017-08-20 09:03:52 +02:00
Kacper Kasper 2aaee07095 Fix window behavior if default button is present.
* Almost all Enter keystrokes were hijacked without the ability to
  reconfigure.
* Let apps use these shortcuts.

Signed-off-by: Axel Dörfler <[email protected]>
2017-07-20 09:32:20 +02:00
Kacper Kasper c7fabe22b4 ControlLook: Fix redraw issues introduced in hrev50893.
* I was pretty sure that I didn't change the logic, but turns out
  I was wrong. Sorry about that.
* Adjusted copy-pasted comments.

Signed-off-by: Adrien Destugues <[email protected]>

Fixes #13238.
2017-01-29 21:48:40 +01:00
Kacper Kasper 2332ebfd52 ControlLook: Add side parameter to tab drawing functions.
* This allows drawing tabs on any side of the view.

Signed-off-by: Adrien Destugues <[email protected]>
2017-01-22 09:36:38 +01:00
Kacper Kasper 88510bc040 ControlLook: Fix drawing of right bottom tab corner.`
Signed-off-by: Adrien Destugues <[email protected]>
2017-01-22 09:36:33 +01:00
Kacper Kasper 4d83a710f5 makefile-engine: Fix catkey generation.
Fixes #13146.

Signed-off-by: Augustin Cavalier <[email protected]>
2017-01-10 17:21:39 -05:00
Kacper Kasper dd074cc7dc Style fixes for Errors.h.
No functional change intended.
2016-10-04 18:44:58 +02:00
Kacper Kasper 020362191a PowerStatus: Show extended info window on middle button click.
* Fixes #7473.
* Minor style cleanup.

Signed-off-by: Adrien Destugues <[email protected]>
2016-08-28 10:50:22 +02:00
Kacper Kasper 13300cf63a Expander: fix status view.
* Truncate() would cut Unicode characters in the middle.
* This commit removes arbitrary message length limit as well as workaround
  it was needed for and fixes #5289.
* Status view now expands to maximum possible width and cuts the status
  message if necessary using TruncateString().

Signed-off-by: Adrien Destugues <[email protected]>

* Minor whitespace fix.
2016-08-20 07:57:55 +02:00
Kacper Kasper 273109e004 Fix window behavior when default button is present
* Don't intercept Enter key press in a window when there is default
button and another BControl focused.
* Current behavior was basically breaking every window using default
button. Even if there was a button focused (using Tab key), when Enter
was hit, default button handled the message, therefore instead of
i.e. 'Revert' 'Apply' was pressed.
* Fixes #10792.

Signed-off-by: Jessica Hamilton <[email protected]>
2014-04-28 22:52:09 +12:00
Kacper Kasper db0132297b Fix button layout consistency issues in preflets
Signed-off-by: Stephan Aßmus <[email protected]>
2014-02-19 09:33:53 +01:00